Skip to content

Commit

Permalink
open source
Browse files Browse the repository at this point in the history
  • Loading branch information
biezhihua committed Feb 7, 2024
1 parent 1a7eaa0 commit 3674ff2
Show file tree
Hide file tree
Showing 82 changed files with 11,461 additions and 2,131 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/node.js.yml

This file was deleted.

4 changes: 1 addition & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,5 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
run: cd ./soda_resource_tools_lib && cargo build && cargo test -- --test-threads=1
122 changes: 122 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [

{
"type": "lldb",
"request": "launch",
"name": "Debug executable 'soda_cli'",
"cargo": {
"args": [
"build",
"--bin=soda_cli",
"--package=soda_cli"
],
"filter": {
"name": "soda_cli",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in executable 'soda_cli'",
"cargo": {
"args": [
"test",
"--no-run",
"--bin=soda_cli",
"--package=soda_cli"
],
"filter": {
"name": "soda_cli",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'soda_resource_tools_lib'",
"cargo": {
"args": [
"test",
"--no-run",
"--lib",
"--package=soda_resource_tools_lib"
],
"filter": {
"name": "soda_resource_tools_lib",
"kind": "lib"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug integration test 'config_test'",
"cargo": {
"args": [
"test",
"--no-run",
"--test=config_test",
"--package=soda_resource_tools_lib"
],
"filter": {
"name": "config_test",
"kind": "test"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug integration test 'integration_1_soda_test'",
"cargo": {
"args": [
"test",
"--no-run",
"--test=integration_1_soda_test",
"--package=soda_resource_tools_lib"
],
"filter": {
"name": "integration_1_soda_test",
"kind": "test"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug integration test 'integration_2_meta_test'",
"cargo": {
"args": [
"test",
"--no-run",
"--test=integration_2_meta_test",
"--package=soda_resource_tools_lib"
],
"filter": {
"name": "integration_2_meta_test",
"kind": "test"
}
},
"args": [],
"cwd": "${workspaceFolder}"
}
]
}
78 changes: 75 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,79 @@
{
"window.zoomLevel": 2,
"cSpell.words": [
"appender",
"Ascention",
"biezhihua",
"bitrates",
"bluray",
"characterart",
"chrono",
"clearart",
"dateadded",
"douban",
"episodedetails",
"Evangelion",
"fanart",
"filebrowser",
"filetransfer",
"FLAC",
"geilijiasu",
"hardlink",
"hdclearart",
"hdmovieclearart",
"hdmovielogo",
"hdtvlogo",
"HHWEB",
"Hstud",
"imdb",
"imdbid",
"lolice",
"Matroska",
"minidom",
"MNHD",
"moviebackground",
"moviebanner",
"moviedisc",
"movieposter",
"moviethumb",
"originaltitle",
"Rati",
"releasedate",
"remultiplexing",
"REMUX",
"remuxed",
"remuxing",
"reqwest",
"rmvb",
"seasonnumber",
"seasonposter",
"showbackground",
"themoviedb",
"thetvdb",
"tmdb",
"TMDBID",
"tvbanner",
"tvdb",
"tvdbid",
"tvposter",
"tvshow",
"tvthumb",
"uniqueid",
"Wolowitz",
"Xvid"
],
"window.zoomLevel": 1,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer"
},
"terminal.integrated.shellArgs.windows": [
"/K",
"chcp 65001"
]
}
],
"[xml]": {
"editor.defaultFormatter": "redhat.vscode-xml"
},
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
}
}
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[workspace]
resolver = "1"
members = [
"soda_resource_tools_cli",
"soda_resource_tools_lib",
]
19 changes: 19 additions & 0 deletions Cross.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# https://juejin.cn/post/7325645956254351360
# https://github.com/cross-rs/cross-toolchains
# https://hub.docker.com/r/freeznet/x86_64-apple-darwin-cross
# https://github.com/cross-rs/cross?tab=readme-ov-file

# linux
[target.x86_64-unknown-linux-gnu]
xargo = false
# dockerfile = "D:\\Projects\\github\\cross\\docker\\Dockerfile.x86_64-unknown-linux-gnu"

# windwos
[target.x86_64-pc-windows-gnu]
xargo = false
# dockerfile = "D:\\Projects\\github\\cross\\docker\\Dockerfile.x86_64-pc-windows-gnu"

# macos
[target.x86_64-apple-darwin]
xargo = false
image = "freeznet/x86_64-apple-darwin-cross:11.3.1"
Loading

0 comments on commit 3674ff2

Please sign in to comment.