Skip to content

Commit

Permalink
use --all-targets on cargo tree (#4474)
Browse files Browse the repository at this point in the history
This is an attempt (very terrible and unfun) to get the new `cargo tree`
dep-tree commands to be more stable across platforms and invocations.
Unfortunately it makes them gigantic.
  • Loading branch information
graydon committed Sep 19, 2024
2 parents 61e8d53 + 37de5c8 commit 3aeac5d
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ $(RUST_DEP_TREE_STAMP): $(ALL_RUST_EXPECT_DEPTREES) $(ALL_RUST_ACTUAL_DEPTREES)
$(ALL_RUST_ACTUAL_DEPTREES) &: $(wildcard rust/soroban/*/Cargo.*) Makefile
for proto in $(ALL_SOROBAN_PROTOCOLS); \
do \
cargo tree --manifest-path rust/soroban/$$proto/Cargo.toml --locked --package soroban-env-host --edges no-dev \
cargo tree --manifest-path rust/soroban/$$proto/Cargo.toml --locked --package soroban-env-host --edges no-dev --target all \
| sed -e "s@$(abspath $(top_srcdir))/@@g" > $(RUST_BUILD_DIR)/src/dep-trees/$$proto-actual.txt ;\
done

Expand Down
27 changes: 25 additions & 2 deletions src/rust/src/dep-trees/p21-expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ soroban-env-host v21.2.1 (src/rust/soroban/p21/soroban-env-host)
├── curve25519-dalek v4.1.1
│ ├── cfg-if v1.0.0
│ ├── cpufeatures v0.2.8
│ │ └── libc v0.2.150
│ ├── curve25519-dalek-derive v0.1.0 (proc-macro)
│ │ ├── proc-macro2 v1.0.69
│ │ │ └── unicode-ident v1.0.9
Expand All @@ -23,6 +24,7 @@ soroban-env-host v21.2.1 (src/rust/soroban/p21/soroban-env-host)
│ │ │ ├── generic-array v0.14.7 (*)
│ │ │ └── typenum v1.16.0
│ │ └── subtle v2.5.0
│ ├── fiat-crypto v0.2.5
│ ├── subtle v2.5.0
│ └── zeroize v1.6.0
│ [build-dependencies]
Expand All @@ -41,7 +43,27 @@ soroban-env-host v21.2.1 (src/rust/soroban/p21/soroban-env-host)
│ │ │ ├── rand_core v0.6.4
│ │ │ │ └── getrandom v0.2.11
│ │ │ │ ├── cfg-if v1.0.0
│ │ │ │ └── libc v0.2.150
│ │ │ │ ├── js-sys v0.3.64
│ │ │ │ │ └── wasm-bindgen v0.2.87
│ │ │ │ │ ├── cfg-if v1.0.0
│ │ │ │ │ └── wasm-bindgen-macro v0.2.87 (proc-macro)
│ │ │ │ │ ├── quote v1.0.33 (*)
│ │ │ │ │ └── wasm-bindgen-macro-support v0.2.87
│ │ │ │ │ ├── proc-macro2 v1.0.69 (*)
│ │ │ │ │ ├── quote v1.0.33 (*)
│ │ │ │ │ ├── syn v2.0.39 (*)
│ │ │ │ │ ├── wasm-bindgen-backend v0.2.87
│ │ │ │ │ │ ├── bumpalo v3.13.0
│ │ │ │ │ │ ├── log v0.4.19
│ │ │ │ │ │ ├── once_cell v1.18.0
│ │ │ │ │ │ ├── proc-macro2 v1.0.69 (*)
│ │ │ │ │ │ ├── quote v1.0.33 (*)
│ │ │ │ │ │ ├── syn v2.0.39 (*)
│ │ │ │ │ │ └── wasm-bindgen-shared v0.2.87
│ │ │ │ │ └── wasm-bindgen-shared v0.2.87
│ │ │ │ ├── libc v0.2.150
│ │ │ │ ├── wasi v0.11.0+wasi-snapshot-preview1
│ │ │ │ └── wasm-bindgen v0.2.87 (*)
│ │ │ ├── subtle v2.5.0
│ │ │ └── zeroize v1.6.0
│ │ ├── digest v0.10.7 (*)
Expand Down Expand Up @@ -76,7 +98,7 @@ soroban-env-host v21.2.1 (src/rust/soroban/p21/soroban-env-host)
│ ├── rand_core v0.6.4 (*)
│ ├── sha2 v0.10.8
│ │ ├── cfg-if v1.0.0
│ │ ├── cpufeatures v0.2.8
│ │ ├── cpufeatures v0.2.8 (*)
│ │ └── digest v0.10.7 (*)
│ └── zeroize v1.6.0
├── elliptic-curve v0.13.5 (*)
Expand Down Expand Up @@ -118,6 +140,7 @@ soroban-env-host v21.2.1 (src/rust/soroban/p21/soroban-env-host)
├── sha3 v0.10.8
│ ├── digest v0.10.7 (*)
│ └── keccak v0.1.4
│ └── cpufeatures v0.2.8 (*)
├── soroban-builtin-sdk-macros v21.2.1 (proc-macro) (src/rust/soroban/p21/soroban-builtin-sdk-macros)
│ ├── itertools v0.11.0
│ │ └── either v1.8.1
Expand Down
32 changes: 30 additions & 2 deletions src/rust/src/dep-trees/p22-expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ soroban-env-host v22.0.0 (src/rust/soroban/p22/soroban-env-host)
├── curve25519-dalek v4.1.1
│ ├── cfg-if v1.0.0
│ ├── cpufeatures v0.2.8
│ │ └── libc v0.2.150
│ ├── curve25519-dalek-derive v0.1.0 (proc-macro)
│ │ ├── proc-macro2 v1.0.69
│ │ │ └── unicode-ident v1.0.9
Expand All @@ -23,6 +24,7 @@ soroban-env-host v22.0.0 (src/rust/soroban/p22/soroban-env-host)
│ │ │ ├── generic-array v0.14.7 (*)
│ │ │ └── typenum v1.16.0
│ │ └── subtle v2.5.0
│ ├── fiat-crypto v0.2.5
│ ├── subtle v2.5.0
│ └── zeroize v1.6.0
│ [build-dependencies]
Expand All @@ -41,7 +43,27 @@ soroban-env-host v22.0.0 (src/rust/soroban/p22/soroban-env-host)
│ │ │ ├── rand_core v0.6.4
│ │ │ │ └── getrandom v0.2.11
│ │ │ │ ├── cfg-if v1.0.0
│ │ │ │ └── libc v0.2.150
│ │ │ │ ├── js-sys v0.3.64
│ │ │ │ │ └── wasm-bindgen v0.2.87
│ │ │ │ │ ├── cfg-if v1.0.0
│ │ │ │ │ └── wasm-bindgen-macro v0.2.87 (proc-macro)
│ │ │ │ │ ├── quote v1.0.33 (*)
│ │ │ │ │ └── wasm-bindgen-macro-support v0.2.87
│ │ │ │ │ ├── proc-macro2 v1.0.69 (*)
│ │ │ │ │ ├── quote v1.0.33 (*)
│ │ │ │ │ ├── syn v2.0.39 (*)
│ │ │ │ │ ├── wasm-bindgen-backend v0.2.87
│ │ │ │ │ │ ├── bumpalo v3.13.0
│ │ │ │ │ │ ├── log v0.4.19
│ │ │ │ │ │ ├── once_cell v1.19.0
│ │ │ │ │ │ ├── proc-macro2 v1.0.69 (*)
│ │ │ │ │ │ ├── quote v1.0.33 (*)
│ │ │ │ │ │ ├── syn v2.0.39 (*)
│ │ │ │ │ │ └── wasm-bindgen-shared v0.2.87
│ │ │ │ │ └── wasm-bindgen-shared v0.2.87
│ │ │ │ ├── libc v0.2.150
│ │ │ │ ├── wasi v0.11.0+wasi-snapshot-preview1
│ │ │ │ └── wasm-bindgen v0.2.87 (*)
│ │ │ ├── subtle v2.5.0
│ │ │ └── zeroize v1.6.0
│ │ ├── digest v0.10.7 (*)
Expand Down Expand Up @@ -76,7 +98,7 @@ soroban-env-host v22.0.0 (src/rust/soroban/p22/soroban-env-host)
│ ├── rand_core v0.6.4 (*)
│ ├── sha2 v0.10.8
│ │ ├── cfg-if v1.0.0
│ │ ├── cpufeatures v0.2.8
│ │ ├── cpufeatures v0.2.8 (*)
│ │ └── digest v0.10.7 (*)
│ └── zeroize v1.6.0
├── elliptic-curve v0.13.5 (*)
Expand Down Expand Up @@ -118,6 +140,7 @@ soroban-env-host v22.0.0 (src/rust/soroban/p22/soroban-env-host)
├── sha3 v0.10.8
│ ├── digest v0.10.7 (*)
│ └── keccak v0.1.4
│ └── cpufeatures v0.2.8 (*)
├── soroban-builtin-sdk-macros v22.0.0 (proc-macro) (src/rust/soroban/p22/soroban-builtin-sdk-macros)
│ ├── itertools v0.11.0
│ │ └── either v1.8.1
Expand Down Expand Up @@ -171,6 +194,10 @@ soroban-env-host v22.0.0 (src/rust/soroban/p22/soroban-env-host)
│ │ │ │ ├── cfg-if v1.0.0
│ │ │ │ ├── once_cell v1.19.0
│ │ │ │ └── zerocopy v0.7.35
│ │ │ │ └── zerocopy-derive v0.7.35 (proc-macro)
│ │ │ │ ├── proc-macro2 v1.0.69 (*)
│ │ │ │ ├── quote v1.0.33 (*)
│ │ │ │ └── syn v2.0.39 (*)
│ │ │ │ [build-dependencies]
│ │ │ │ └── version_check v0.9.4
│ │ │ ├── hashbrown v0.14.1
Expand All @@ -179,6 +206,7 @@ soroban-env-host v22.0.0 (src/rust/soroban/p22/soroban-env-host)
│ │ │ ├── cfg-if v1.0.0
│ │ │ ├── hashbrown v0.14.1 (*)
│ │ │ └── serde v1.0.192
│ │ │ └── serde_derive v1.0.192 (proc-macro) (*)
│ │ ├── wasmi_core v0.36.0-soroban.22.0.0 (https://github.com/stellar/wasmi?rev=122a74a7c491929e5ac9de876099154ef7c06d06#122a74a7)
│ │ │ ├── downcast-rs v1.2.0
│ │ │ ├── libm v0.2.8
Expand Down

0 comments on commit 3aeac5d

Please sign in to comment.