feat: release v2.1.0 - #106
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
kaiwei-0
added a commit
that referenced
this pull request
Jul 29, 2026
`cargo install --git https://github.com/brevis-network/pico pico-cli` fails on v2.1.0: error: package `.../examples/aot_common/Cargo.toml` is a member of the wrong workspace expected: .../Cargo.toml actual: .../examples/Cargo.toml `perf` is a member of the root workspace, but it path-depended on `examples/aot_common`, which is a declared member of the nested `examples` workspace. A git source enumerates the whole repository to find the requested package, so it loads both workspaces and rejects the conflicting membership. v2.0.0 installs fine; the dependency came in with #106. `perf` only ever used one symbol from that crate -- `register_with_vm()`. So it now carries its own `src/aot_glue.rs` and depends on the generated `pico-aot-dispatch` directly, which is nobody's declared workspace member and therefore fine to path-depend on. This is the pattern already used elsewhere: `cargo pico new` ships the same file as `prover/src/aot_glue.rs`, and the AOT examples keep their own copy. The glue has to name the *generated* dispatch crate, and that crate is regenerated per guest ELF, so a shared library crate cannot hold it -- `aot-runtime` would form a dependency cycle, since `aot-generated` already depends on it. `examples/aot_common` is left untouched and stays example-only, which is what it was for. No root-workspace crate depends on it any more, so the workspace conflict is gone without touching any AOT execution path: the example binaries still call `run_aot` as a compile-time symbol and need no registration. Also drop references to internal branch and repository names from comments (vm/src/emulator/aot.rs, vm/src/proverchain/riscv.rs, aot-runtime/src/emulator/memory.rs, aot-codegen/src/compiler.rs) and point sdk/sdk's AOT note at the generated project's aot_glue.rs. Verified: `cargo install --git file://<repo> --branch <this>` now passes package selection (the only path that reproduces the bug -- cargo metadata and CI are green even on the broken tree); fmt, `cargo metadata --all-features`, the examples workspace, the CI clippy gate, `cargo check -p pico-perf --features aot` and the fibonacci AOT example all clean.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prepares the v2.1.0 release.