Skip to content

Commit

Permalink
doc: __abi-generate feature in docs.rs (#1286)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: dj8yf0μl <[email protected]>
  • Loading branch information
dj8yfo and dj8yf0μl authored Dec 24, 2024
1 parent 1898971 commit ae0d1c4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ jobs:
env:
RUSTDOCFLAGS: -D warnings
run: |
cargo doc -p near-sdk --features unstable,legacy,unit-testing,__macro-docs
cargo doc -p near-sdk-macros
cargo doc -p near-contract-standards --no-deps
cargo doc -p near-sdk --features unstable,legacy,unit-testing,__macro-docs,__abi-generate
cargo doc -p near-sdk-macros --features __abi-generate
cargo doc -p near-contract-standards --no-deps --features abi
cargo doc -p near-sys
5 changes: 4 additions & 1 deletion near-contract-standards/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@ near-sdk = { path = "../near-sdk", default-features = false, features = [

[features]
default = []
abi = ["near-sdk/abi"]
abi = ["near-sdk/__abi-generate"]

[package.metadata.docs.rs]
features = ["abi"]
3 changes: 3 additions & 0 deletions near-sdk-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@ prettyplease = { version = "0.2.15" }
abi = []
__abi-embed = ["abi"]
__abi-generate = ["abi"]

[package.metadata.docs.rs]
features = ["__abi-generate"]
2 changes: 1 addition & 1 deletion near-sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,4 @@ __abi-generate = ["abi", "near-sdk-macros/__abi-generate"]
__macro-docs = []

[package.metadata.docs.rs]
features = ["unstable", "legacy", "unit-testing", "__macro-docs"]
features = ["unstable", "legacy", "unit-testing", "__macro-docs", "__abi-generate"]

0 comments on commit ae0d1c4

Please sign in to comment.