You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm considering renaming the examples directory to something else, perhaps demos. I find two things about the current setup inconvenient:
It's hard to add new examples because we need to add an [[example]] section per example to examples/Cargo.toml. I find this inconvenient because sometimes it's nice to add a quick temporary example for testing.
You need to be in the examples directory to run examples.
A possible solution to this would be to:
rename examples to demo
delete autoexamples = false
add demo to default-members list in the [workspace] section
perhaps change examples to bins
In that case, we could do cargo run --bin ctrl-c from the root of the repository.
The text was updated successfully, but these errors were encountered:
I'm considering renaming the
examples
directory to something else, perhapsdemos
. I find two things about the current setup inconvenient:It's hard to add new examples because we need to add an
[[example]]
section per example toexamples/Cargo.toml
. I find this inconvenient because sometimes it's nice to add a quick temporary example for testing.You need to be in the
examples
directory to run examples.A possible solution to this would be to:
examples
todemo
autoexamples = false
demo
todefault-members
list in the[workspace]
sectionIn that case, we could do
cargo run --bin ctrl-c
from the root of the repository.The text was updated successfully, but these errors were encountered: