-
Notifications
You must be signed in to change notification settings - Fork 24
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
Removed feature interface from docs #346
Removed feature interface from docs #346
Conversation
We need to keep the re-export though here ! Without the feature flag macro |
I'm pretty sure there are more instances where this flag is used (in the actual code which is referenced in the documentation). Maybe something that @Kayanski could remove more efficiently |
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.
LFGGGGGG
cargo add --optional cw-orch | ||
cargo add cw-orch |
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.
🔥
docs/src/quick_start.md
Outdated
cw-orch = {version = "0.17.0", optional = true } # Latest version at time of writing | ||
cw-orch = {version = "0.21.0" } # Latest version at time of writing |
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.
Love it from looking at every change in these docs
|
||
## Importing cw-orch | ||
|
||
Importing `cw-orch` as a dependency in your smart contract is not a problem. We have built this library such that every feature that cw-orch imports, uses or exposes is not included when compiled for Wasm. This means that you are safe to use any cw-orch feature when developing your application, creating interfaces, exporting features, because none of it will land in your contract. |
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.
Importing `cw-orch` as a dependency in your smart contract is not a problem. We have built this library such that every feature that cw-orch imports, uses or exposes is not included when compiled for Wasm. This means that you are safe to use any cw-orch feature when developing your application, creating interfaces, exporting features, because none of it will land in your contract. | |
Importing `cw-orch` as a dependency in your smart contract is not a problem. We have built this library such that every feature that cw-orch imports, uses or exports not included when compiled for Wasm. This means that you are safe to use any cw-orch feature when developing your application, creating interfaces, exporting features, because none of it will land in your contract. |
{{#include ../../../contracts/counter/src/interface.rs:uploadable_impl}} | ||
``` | ||
|
||
### Entry Points |
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.
I think this is the only location where we call them entry points?
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.
Some nits on the docs :)
Co-authored-by: CyberHoward <88450409+CyberHoward@users.noreply.github.com>
This PR aims at updating the cw-orch docs: