mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-07-23 21:45:41 +00:00
revive-runner: install with locked dependencies (#286)
Make the installation of `revive-runner` easier: - Use locked dependencies to avoid issues with downstream crates - Make the llvm-context crate an optional dependency to the runner - Add it to the default `test` target ensuring that this actually works Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
This commit is contained in:
@@ -41,7 +41,7 @@ install-llvm: install-llvm-builder
|
|||||||
revive-llvm build --llvm-projects lld --llvm-projects clang
|
revive-llvm build --llvm-projects lld --llvm-projects clang
|
||||||
|
|
||||||
install-revive-runner:
|
install-revive-runner:
|
||||||
cargo install --path crates/runner --no-default-features
|
cargo install --path crates/runner --no-default-features --locked
|
||||||
|
|
||||||
format:
|
format:
|
||||||
cargo fmt --all --check
|
cargo fmt --all --check
|
||||||
@@ -53,7 +53,7 @@ machete:
|
|||||||
cargo install cargo-machete
|
cargo install cargo-machete
|
||||||
cargo machete
|
cargo machete
|
||||||
|
|
||||||
test: format clippy machete test-cli test-workspace
|
test: format clippy machete test-cli test-workspace install-revive-runner
|
||||||
|
|
||||||
test-integration: install-bin
|
test-integration: install-bin
|
||||||
cargo test --package revive-integration
|
cargo test --package revive-integration
|
||||||
|
|||||||
@@ -17,11 +17,11 @@ path = "src/main.rs"
|
|||||||
[features]
|
[features]
|
||||||
std = ["polkadot-sdk/std"]
|
std = ["polkadot-sdk/std"]
|
||||||
default = ["solidity"]
|
default = ["solidity"]
|
||||||
solidity = ["revive-solidity", "revive-differential"]
|
solidity = ["revive-solidity", "revive-differential", "revive-llvm-context"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
env_logger = { workspace = true }
|
env_logger = { workspace = true }
|
||||||
clap = { workspace = true }
|
clap = { workspace = true, features = ["help", "std", "derive"] }
|
||||||
anyhow = { workspace = true }
|
anyhow = { workspace = true }
|
||||||
serde = { workspace = true }
|
serde = { workspace = true }
|
||||||
serde_json = { workspace = true }
|
serde_json = { workspace = true }
|
||||||
@@ -41,4 +41,4 @@ polkadot-sdk.features = [
|
|||||||
|
|
||||||
revive-solidity = { workspace = true, optional = true }
|
revive-solidity = { workspace = true, optional = true }
|
||||||
revive-differential = { workspace = true, optional = true }
|
revive-differential = { workspace = true, optional = true }
|
||||||
revive-llvm-context = { workspace = true }
|
revive-llvm-context = { workspace = true, optional = true }
|
||||||
|
|||||||
Reference in New Issue
Block a user