unblockneteasemusic / server-rust Goto Github PK
View Code? Open in Web Editor NEWRust 版本的 UnblockNeteaseMusic/server ,以效能、穩定性及可維護性為目標。
License: GNU Lesser General Public License v3.0
Rust 版本的 UnblockNeteaseMusic/server ,以效能、穩定性及可維護性為目標。
License: GNU Lesser General Public License v3.0
assert_eq!(format!("{song}"), "Song Name - Artist");
assert_eq!(song.display_name(), "Song Name - Artist");
assert_eq!(song.keyword(), "Song Name Artist"); // 搜尋引擎友好
之後有考慮重寫 UNM 以求高抽象。
Prerequisite: #68
根据 fossa 扫描结果,个人推荐设定为 GPL-3.0-only。
用ypm时,好多歌曲匹配的都不对,不知道怎么办,指定特定的源是不是会起作用?不知道这个匹配机制是什么,但是网易云音乐上有的歌曲时长和别的曲库是有几秒的差别的,感觉不能只看时长。在别的曲库搜的第一个结果往往就是正确的,但是匹配出来的就是错的。关于匹配时间过长的问题,是不是可以预读播放列表,预先查询匹配?@pan93412
按照文档所说查了documen.cookie,但是只有uin,没有 qm_keyst的值
unm_resolver::resolve(Song::Default(), vec![
Engine::Kuwo,
Engine::YtDlp
]);
aarch64-unknown-linux-gnu
2022-08-10T04:31:00.0571160Z Compiling tinyvec v1.6.0
2022-08-10T04:31:01.0641082Z Compiling alloc-stdlib v0.2.1
2022-08-10T04:31:01.1633483Z Compiling miniz_oxide v0.5.1
2022-08-10T04:31:01.5228108Z Compiling form_urlencoded v1.0.1
2022-08-10T04:31:01.9934096Z Compiling random-string v1.0.0
2022-08-10T04:31:02.0776633Z Compiling unm_napi v0.0.0 (/build/napi)
2022-08-10T04:31:04.0664728Z Compiling openssl-sys v0.9.75
2022-08-10T04:31:04.4282158Z error: failed to run custom build command for `libmimalloc-sys v0.1.25`
2022-08-10T04:31:04.4283583Z
2022-08-10T04:31:04.4283660Z Caused by:
2022-08-10T04:31:04.4292632Z process didn't exit successfully: `/build/target/release/build/libmimalloc-sys-3c79500f70151f70/build-script-build` (exit status: 1)
2022-08-10T04:31:04.4293207Z --- stdout
2022-08-10T04:31:04.4293409Z OPT_LEVEL = Some("3")
2022-08-10T04:31:04.4293859Z TARGET = Some("aarch64-unknown-linux-gnu")
2022-08-10T04:31:04.4294188Z HOST = Some("x86_64-unknown-linux-gnu")
2022-08-10T04:31:04.4294504Z CC_aarch64-unknown-linux-gnu = None
2022-08-10T04:31:04.4294992Z CC_aarch64_unknown_linux_gnu = Some("aarch64-linux-gnu-gcc")
2022-08-10T04:31:04.4295349Z CFLAGS_aarch64-unknown-linux-gnu = None
2022-08-10T04:31:04.4295746Z CFLAGS_aarch64_unknown_linux_gnu = None
2022-08-10T04:31:04.4295960Z TARGET_CFLAGS = None
2022-08-10T04:31:04.4296155Z CFLAGS = None
2022-08-10T04:31:04.4296363Z CRATE_CC_NO_DEFAULTS = None
2022-08-10T04:31:04.4296565Z DEBUG = Some("false")
2022-08-10T04:31:04.4296933Z CARGO_CFG_TARGET_FEATURE = Some("neon,pmuv3")
2022-08-10T04:31:04.4297270Z CC_aarch64-unknown-linux-gnu = None
2022-08-10T04:31:04.4297754Z CC_aarch64_unknown_linux_gnu = Some("aarch64-linux-gnu-gcc")
2022-08-10T04:31:04.4298105Z CFLAGS_aarch64-unknown-linux-gnu = None
2022-08-10T04:31:04.4298470Z CFLAGS_aarch64_unknown_linux_gnu = None
2022-08-10T04:31:04.4298704Z TARGET_CFLAGS = None
2022-08-10T04:31:04.4298887Z CFLAGS = None
2022-08-10T04:31:04.4299084Z CRATE_CC_NO_DEFAULTS = None
2022-08-10T04:31:04.4299453Z CARGO_CFG_TARGET_FEATURE = Some("neon,pmuv3")
2022-08-10T04:31:04.4299762Z CC_aarch64-unknown-linux-gnu = None
2022-08-10T04:31:04.4300236Z CC_aarch64_unknown_linux_gnu = Some("aarch64-linux-gnu-gcc")
2022-08-10T04:31:04.4300598Z CFLAGS_aarch64-unknown-linux-gnu = None
2022-08-10T04:31:04.4300948Z CFLAGS_aarch64_unknown_linux_gnu = None
2022-08-10T04:31:04.4301171Z TARGET_CFLAGS = None
2022-08-10T04:31:04.4301369Z CFLAGS = None
2022-08-10T04:31:04.4301556Z CRATE_CC_NO_DEFAULTS = None
2022-08-10T04:31:04.4301797Z CARGO_CFG_TARGET_FEATURE = Some("neon,pmuv3")
2022-08-10T04:31:04.4302717Z running: "aarch64-linux-gnu-gcc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-I" "c_src/mimalloc/include" "-I" "c_src/mimalloc/src" "-Wall" "-Wextra" "-DMI_SECURE=4" "-DMI_DEBUG=0" "-o" "/build/target/aarch64-unknown-linux-gnu/release/build/libmimalloc-sys-05bea6790a1b0a59/out/c_src/mimalloc/src/static.o" "-c" "c_src/mimalloc/src/static.c"
2022-08-10T04:31:04.4303252Z
2022-08-10T04:31:04.4303360Z --- stderr
2022-08-10T04:31:04.4303473Z
2022-08-10T04:31:04.4303480Z
2022-08-10T04:31:04.4303950Z error occurred: Failed to find tool. Is `aarch64-linux-gnu-gcc` installed?
2022-08-10T04:31:04.4304159Z
2022-08-10T04:31:04.4304241Z
2022-08-10T04:31:04.4304509Z warning: build failed, waiting for other jobs to finish...
2022-08-10T04:31:04.6218703Z Internal Error: Command failed: cargo build --release --target aarch64-unknown-linux-gnu
2022-08-10T04:31:04.6219124Z at checkExecSyncError (node:child_process:828:11)
2022-08-10T04:31:04.6219424Z at Object.execSync (node:child_process:899:15)
2022-08-10T04:31:04.6219866Z at BuildCommand.<anonymous> (/build/napi/node_modules/@napi-rs/cli/scripts/index.js:31942:26)
2022-08-10T04:31:04.6220182Z at Generator.next (<anonymous>)
2022-08-10T04:31:04.6220575Z at fulfilled (/build/napi/node_modules/@napi-rs/cli/scripts/index.js:3464:58)
2022-08-10T04:31:04.6421863Z error Command failed with exit code 1.
2022-08-10T04:31:04.6422272Z info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
2022-08-10T04:31:05.1262506Z Post job cleanup.
cargo nextest run
→ cargo test
for Windows之前的UNM有通过X-Real-IP来支持海外解锁(参见此处),想请问rust版现在有支持或者有计划支持吗?readme里没有提及,搜索了下代码也没有找到相关的部分,不知道是否是我遗漏了。多谢。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.