-
Notifications
You must be signed in to change notification settings - Fork 122
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
Move exampels to separate crate #371
Conversation
367641e
to
a12946c
Compare
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 don't like the repetition examples/examples. Instead we could regroup the examples:
examples/
- compose_extrinsic/
- events/
- storage/
...
That sadly doesn't work because of cargo. To name the second example folder |
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.
Then :)
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.
Nice, lgtm!
frame-support = { git = "https://github.com/paritytech/substrate.git", branch = "master" } | ||
frame-system = { git = "https://github.com/paritytech/substrate.git", branch = "master" } | ||
kitchensink-runtime = { git = "https://github.com/paritytech/substrate.git", branch = "master" } | ||
pallet-balances = { git = "https://github.com/paritytech/substrate.git", branch = "master" } | ||
pallet-identity = { git = "https://github.com/paritytech/substrate.git", branch = "master" } | ||
pallet-staking = { git = "https://github.com/paritytech/substrate.git", branch = "master" } | ||
sp-core = { features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "master" } | ||
sp-keyring = { git = "https://github.com/paritytech/substrate.git", branch = "master" } | ||
sp-runtime = { git = "https://github.com/paritytech/substrate.git", branch = "master" } | ||
sp-version = { git = "https://github.com/paritytech/substrate.git", branch = "master" } |
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 like that these deps no longer live in the root workspace.
This way, the examples don't need to inherit all the features of the api-client. They import the api-client with the necessary features. This serves as a better example on how to import and use the api-client.