-
Notifications
You must be signed in to change notification settings - Fork 51
add stellar metadata section to contract cargo.toml files #680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,9 @@ repository.workspace = true | |
| publish = false | ||
| version.workspace = true | ||
|
|
||
| [package.metadata.stellar] | ||
| cargo_inherit = true | ||
|
Comment on lines
+9
to
+10
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Verify whether workspace-level stellar metadata exists and where cargo_inherit is used.
set -euo pipefail
echo "== Workspace Cargo manifests =="
fd -a '^Cargo\.toml$' | sed 's#^\./##'
echo
echo "== Find workspace metadata.stellar blocks =="
rg -n --type toml '^\[workspace\.metadata\.stellar\]|^cargo_inherit\s*='
echo
echo "== Find package metadata.stellar blocks =="
rg -n --type toml '^\[package\.metadata\.stellar\]|^cargo_inherit\s*='Repository: OpenZeppelin/stellar-contracts Length of output: 13642 Add This file uses Add to root Cargo.toml+[workspace.metadata.stellar]
+# define shared stellar metadata inherited by member crates🤖 Prompt for AI Agents |
||
|
|
||
| [lib] | ||
| crate-type = ["cdylib", "rlib"] | ||
| doctest = false | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: OpenZeppelin/stellar-contracts
Length of output: 7161
🏁 Script executed:
Repository: OpenZeppelin/stellar-contracts
Length of output: 1958
🏁 Script executed:
Repository: OpenZeppelin/stellar-contracts
Length of output: 138
🏁 Script executed:
Repository: OpenZeppelin/stellar-contracts
Length of output: 160
Add workspace-level Stellar metadata to root Cargo.toml to make
cargo_inheriteffectiveThe pattern of using
cargo_inherit = trueappears across 60+ crates in this repository, but the rootCargo.tomllacks a[workspace.metadata.stellar]section to inherit from. This means the inheritance directive is currently a no-op and won't achieve the SEP-49 metadata consistency objective across the workspace.Add a
[workspace.metadata.stellar]section to the rootCargo.tomlwith the appropriate metadata entries, or replacecargo_inherit = truewith explicit values in each crate if inheritance is not intended.🤖 Prompt for AI Agents