Skip to content

Added no_std feature switch.#31

Merged
jrraymond merged 3 commits intopetgraph:masterfrom
jonimake:no_std
Aug 25, 2019
Merged

Added no_std feature switch.#31
jrraymond merged 3 commits intopetgraph:masterfrom
jonimake:no_std

Conversation

@jonimake
Copy link
Contributor

Types from core module are used instead of std when no_std feature is
enabled. This also enables alloc feature and uses alloc crate. Removed
println statements from tests since they don't work in no_std.

Types from core module are used instead of std when no_std feature is
enabled. This also enables alloc feature and uses alloc crate. Removed
println statements from tests since they don't work in no_std.
@jonimake
Copy link
Contributor Author

@bluss what do you think?

@jonimake
Copy link
Contributor Author

jonimake commented Apr 5, 2019

@bluss have you had chance to review the changes? Any comments would be appreciated.

@jmcomets
Copy link

@bluss Can we look into merging this? The changes seem minimal & the new feature unblocks this issue

@jrraymond jrraymond merged commit c7c317e into petgraph:master Aug 25, 2019
@bluss
Copy link
Member

bluss commented Oct 6, 2019

Using a "positive" feature flag for "no_std" is not how this is usually done, because features must be additive. I'll have to half revert this back to the solution that works well with cargo features.

Using a feature "std" that is a default feature is the normal solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants