mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2024-11-20 00:46:34 +00:00
Remove unneeded clang/crc dependencies
This commit is contained in:
parent
a4a24268f1
commit
74f74c5c58
6 changed files with 1 additions and 57 deletions
17
Cargo.lock
generated
17
Cargo.lock
generated
|
@ -1,20 +1,5 @@
|
|||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
[[package]]
|
||||
name = "build_const"
|
||||
version = "0.2.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "39092a32794787acd8525ee150305ff051b0aa6cc2abaf193924f5ab05425f39"
|
||||
|
||||
[[package]]
|
||||
name = "crc"
|
||||
version = "1.8.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d663548de7f5cca343f1e0a48d14dcfb0e9eb4e079ec58883b7251539fa10aeb"
|
||||
dependencies = [
|
||||
"build_const",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "lazy_static"
|
||||
version = "1.4.0"
|
||||
|
@ -58,7 +43,6 @@ dependencies = [
|
|||
name = "skyline"
|
||||
version = "0.0.1"
|
||||
dependencies = [
|
||||
"crc",
|
||||
"nnsdk",
|
||||
"skyline_libc",
|
||||
"skyline_macro",
|
||||
|
@ -72,7 +56,6 @@ version = "0.1.0"
|
|||
name = "skyline_macro"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"crc",
|
||||
"lazy_static",
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
"executables": true,
|
||||
"has-elf-tls": false,
|
||||
"has-rpath": false,
|
||||
"linker": "rust-lld",
|
||||
"linker-flavor": "ld.lld",
|
||||
"llvm-target": "aarch64-unknown-none",
|
||||
"max-atomic-width": 128,
|
||||
|
|
|
@ -10,4 +10,3 @@ edition = "2018"
|
|||
skyline_macro = { path = "./skyline_macro" }
|
||||
nnsdk = { path = "./nnsdk" }
|
||||
skyline_libc = { path = "./skyline_libc" }
|
||||
crc = { version = "1.8", default-features = false }
|
||||
|
|
16
skyline/skyline_macro/Cargo.lock
generated
16
skyline/skyline_macro/Cargo.lock
generated
|
@ -1,20 +1,5 @@
|
|||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
[[package]]
|
||||
name = "build_const"
|
||||
version = "0.2.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "39092a32794787acd8525ee150305ff051b0aa6cc2abaf193924f5ab05425f39"
|
||||
|
||||
[[package]]
|
||||
name = "crc"
|
||||
version = "1.8.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d663548de7f5cca343f1e0a48d14dcfb0e9eb4e079ec58883b7251539fa10aeb"
|
||||
dependencies = [
|
||||
"build_const",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "lazy_static"
|
||||
version = "1.4.0"
|
||||
|
@ -43,7 +28,6 @@ dependencies = [
|
|||
name = "skyline_macro"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"crc",
|
||||
"lazy_static",
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
|
|
|
@ -14,4 +14,3 @@ syn = { version = "1", features = ["full", "extra-traits"] }
|
|||
quote = "1"
|
||||
proc-macro2 = "1"
|
||||
lazy_static = "1.4"
|
||||
crc = { version = "1.8", default-features = false }
|
||||
|
|
|
@ -103,28 +103,6 @@ fn lit_to_bytes(lit: &Lit) -> Option<Vec<u8>> {
|
|||
}
|
||||
}
|
||||
|
||||
#[proc_macro]
|
||||
pub fn crc32(input: TokenStream) -> TokenStream {
|
||||
let expr = parse_macro_input!(input as Lit);
|
||||
|
||||
match lit_to_bytes(&expr) {
|
||||
Some(bytes) => {
|
||||
let crc = crc::crc32::checksum_ieee(&bytes);
|
||||
|
||||
TokenStream::from(quote! {
|
||||
(#crc)
|
||||
})
|
||||
}
|
||||
None => {
|
||||
let span = expr.span();
|
||||
TokenStream::from(quote::quote_spanned!{span =>
|
||||
compile_error!("Invalid literal");
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#[proc_macro]
|
||||
pub fn to_null_term_bytes(input: TokenStream) -> TokenStream {
|
||||
let expr = parse_macro_input!(input as Lit);
|
||||
|
|
Loading…
Reference in a new issue