Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eerii committed Dec 9, 2024
1 parent a386864 commit 4f19415
Show file tree
Hide file tree
Showing 15 changed files with 1,246 additions and 245 deletions.
25 changes: 19 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
[package]
name = "system-deps"
[workspace]
members = [ "meta" ]
exclude = [ "target" ]

[workspace.package]
version = "7.0.3"
authors = [
"Guillaume Desmottes <[email protected]>",
Expand All @@ -17,20 +20,30 @@ keywords = [
]
edition = "2018"
documentation = "https://docs.rs/system-deps/"
readme = "README.md"

[build-dependencies]
system-deps-meta = { path = "./meta", optional = true }
[workspace.dependencies]
system-deps-meta = { path = "./meta" }

[package]
name = "system-deps"
version.workspace = true
authors.workspace = true
license.workspace = true
description.workspace = true
keywords.workspace = true
edition.workspace = true
documentation.workspace = true
readme = "README.md"

[dependencies]
pkg-config = "0.3.25"
toml = { version = "0.8", default-features = false, features = ["parse"] }
version-compare = "0.2"
heck = "0.5"
cfg-expr = { version = "0.17", features = ["targets"] }
system-deps-meta = { workspace = true, optional = true }

[dev-dependencies]
lazy_static = "1"
itertools = "0.13"
assert_matches = "1.5"

Expand Down
32 changes: 0 additions & 32 deletions build.rs

This file was deleted.

13 changes: 8 additions & 5 deletions meta/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
[package]
name = "system-deps-meta"
version = "0.1.0"
edition = "2021"
version.workspace = true
authors.workspace = true
license.workspace = true
description.workspace = true
keywords.workspace = true
edition.workspace = true
documentation.workspace = true

[dependencies]
cargo_metadata = "0.19"
# Metadata
serde_json = "1.0"
serde = "1.0"
cfg-expr = { version = "0.17", features = ["targets"] }
# Binary
sha256 = { version = "1.5", optional = true }
reqwest = { version = "0.12", features = ["blocking"], optional = true }
flate2 = { version = "1.0", optional = true }
Expand All @@ -22,7 +25,7 @@ apple-flat-package = { version = "0.20", optional = true }
toml = "0.8"

[features]
default = [ ]
default = [ "binary" ]
binary = [ "dep:sha256", "dep:reqwest" ]
gz = [ "dep:flate2", "dep:tar" ]
xz = [ "dep:xz", "dep:tar" ]
Expand Down
2 changes: 1 addition & 1 deletion meta/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::{
};

/// Environment variable to override the top level `Cargo.toml`.
const MANIFEST_VAR: &str = "SYSTEM_DEPS_MANIFEST";
const MANIFEST_VAR: &str = "SYSTEM_DEPS_BUILD_MANIFEST";

/// Environment variable to override the directory where `system-deps`
/// will store build products such as binary outputs.
Expand Down
Loading

0 comments on commit 4f19415

Please sign in to comment.