fix: refine shadowrs dependency, remove libgit2, libz and potentally libssl (#6748)

* feat: update shadown-rs config and remove libgit/libz/libssl deps

* chore: remove native inputs from flake
This commit is contained in:
Ning Sun
2025-08-15 11:01:14 +08:00
committed by GitHub
parent 60e01c7c3d
commit 351826cd32
4 changed files with 6 additions and 36 deletions

35
Cargo.lock generated
View File

@@ -5291,19 +5291,6 @@ version = "0.31.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "32085ea23f3234fc7846555e85283ba4de91e21016dc0455a16286d87a292d64"
[[package]]
name = "git2"
version = "0.20.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3fda788993cc341f69012feba8bf45c0ba4f3291fcc08e214b4d5a7332d88aff"
dependencies = [
"bitflags 2.9.0",
"libc",
"libgit2-sys",
"log",
"url",
]
[[package]]
name = "glob"
version = "0.3.1"
@@ -6922,18 +6909,6 @@ dependencies = [
"once_cell",
]
[[package]]
name = "libgit2-sys"
version = "0.18.0+1.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e1a117465e7e1597e8febea8bb0c410f1c7fb93b1e1cddf34363f8390367ffec"
dependencies = [
"cc",
"libc",
"libz-sys",
"pkg-config",
]
[[package]]
name = "libloading"
version = "0.8.5"
@@ -6987,7 +6962,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d2d16453e800a8cf6dd2fc3eb4bc99b786a9b90c663b8559a5b1a041bf89e472"
dependencies = [
"cc",
"libc",
"pkg-config",
"vcpkg",
]
@@ -11724,12 +11698,11 @@ dependencies = [
[[package]]
name = "shadow-rs"
version = "1.1.1"
version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6d5625ed609cf66d7e505e7d487aca815626dc4ebb6c0dd07637ca61a44651a6"
checksum = "5f0b6af233ae5461c3c6b30db79190ec5fbbef048ebbd5f2cbb3043464168e00"
dependencies = [
"const_format",
"git2",
"is_debug",
"time",
"tzdb",
@@ -14040,9 +14013,9 @@ dependencies = [
[[package]]
name = "tzdb_data"
version = "0.2.1"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0604b35c1f390a774fdb138cac75a99981078895d24bcab175987440bbff803b"
checksum = "9c4c81d75033770e40fbd3643ce7472a1a9fd301f90b7139038228daf8af03ec"
dependencies = [
"tz-rs",
]

View File

@@ -201,7 +201,6 @@ sea-query = "0.32"
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0", features = ["float_roundtrip"] }
serde_with = "3"
shadow-rs = "1.1"
simd-json = "0.15"
similar-asserts = "1.6.0"
smallvec = { version = "1", features = ["serde"] }

View File

@@ -15,8 +15,6 @@
let
pkgs = nixpkgs.legacyPackages.${system};
buildInputs = with pkgs; [
libgit2
libz
];
lib = nixpkgs.lib;
rustToolchain = fenix.packages.${system}.fromToolchainName {

View File

@@ -13,9 +13,9 @@ codec = ["dep:serde"]
[dependencies]
const_format = "0.2"
serde = { workspace = true, optional = true }
shadow-rs.workspace = true
shadow-rs = { version = "1.2.1", default-features = false }
[build-dependencies]
build-data = "0.2"
cargo-manifest = "0.19"
shadow-rs.workspace = true
shadow-rs = { version = "1.2.1", default-features = false, features = ["build"] }