Skip to content

Commit

Permalink
v0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
aurexav committed Jul 27, 2023
1 parent a703eff commit ee6992b
Show file tree
Hide file tree
Showing 12 changed files with 80 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license = "GPL-3.0"
name = "cargo-featalign"
readme = "README.md"
repository = "https://github.com/hack-ink/cargo-featalign"
version = "0.5.0"
version = "0.5.1"

[profile.ci-dev]
incremental = false
Expand Down
15 changes: 15 additions & 0 deletions mock/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions mock/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ pallet-c = { default-features = false, path = "pallet/c" }
pallet-d = { default-features = false, path = "pallet/d" }
# Test nested dependencies.
primitive-a = { default-features = false, path = "primitive/a" }
# Test empty feature format.
primitive-b = { path = "primitive/b" }
primitive-c = { path = "primitive/c" }
primitive-d = { path = "primitive/d" }

[dev-dependencies]
general-e = { path = "general/e" }
Expand Down Expand Up @@ -61,6 +65,8 @@ try-runtime = [
# "pallet-d/try-runtime",
]

empty = []

[workspace]
resolver = "2"

Expand Down
10 changes: 10 additions & 0 deletions mock/Cargo.toml.expect
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ pallet-c = { default-features = false, path = "pallet/c" }
pallet-d = { default-features = false, path = "pallet/d" }
# Test nested dependencies.
primitive-a = { default-features = false, path = "primitive/a" }
# Test empty feature format.
primitive-b = { path = "primitive/b" }
primitive-c = { path = "primitive/c" }
primitive-d = { path = "primitive/d" }

[dev-dependencies]
general-e = { path = "general/e" }
Expand Down Expand Up @@ -67,6 +71,12 @@ try-runtime = [
# "pallet-d/try-runtime",
]

empty = [
"primitive-b/empty",
"primitive-c/empty",
"primitive-d/empty",
]

[workspace]
resolver = "2"

Expand Down
13 changes: 13 additions & 0 deletions mock/primitive/b/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[package]
authors = ["Xavier Lau <xavier@inv.cafe>"]
description = "primitive-b"
edition = "2021"
homepage = "https://hack.ink/cargo-featalign"
license = "GPL-3.0"
name = "primitive-b"
readme = "README.md"
repository = "https://github.com/hack-ink/cargo-featalign"
version = "0.0.0"

[features]
empty = []
1 change: 1 addition & 0 deletions mock/primitive/b/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

13 changes: 13 additions & 0 deletions mock/primitive/c/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[package]
authors = ["Xavier Lau <xavier@inv.cafe>"]
description = "primitive-c"
edition = "2021"
homepage = "https://hack.ink/cargo-featalign"
license = "GPL-3.0"
name = "primitive-c"
readme = "README.md"
repository = "https://github.com/hack-ink/cargo-featalign"
version = "0.0.0"

[features]
empty = []
1 change: 1 addition & 0 deletions mock/primitive/c/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

13 changes: 13 additions & 0 deletions mock/primitive/d/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[package]
authors = ["Xavier Lau <xavier@inv.cafe>"]
description = "primitive-d"
edition = "2021"
homepage = "https://hack.ink/cargo-featalign"
license = "GPL-3.0"
name = "primitive-d"
readme = "README.md"
repository = "https://github.com/hack-ink/cargo-featalign"
version = "0.0.0"

[features]
empty = []
1 change: 1 addition & 0 deletions mock/primitive/d/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

6 changes: 5 additions & 1 deletion src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ fn cargo_featalign_should_work() {
Shared::initialize(SharedInitiator { thread: 32, mode: Mode::DryRun2 });
Analyzer::initialize(AnalyzerInitiator {
manifest_path: "mock".into(),
features: vec!["std".into(), "runtime-benchmarks".into(), "try-runtime".into()],
features: ["std", "runtime-benchmarks", "try-runtime", "empty"]
.iter()
.copied()
.map(Into::into)
.collect(),
workspace_only: true,
default_std: true,
})
Expand Down

0 comments on commit ee6992b

Please sign in to comment.