Closed wucke13 closed 2 years ago
@Stoeoef regarding checks of the no_std
compatibility, maybe we should use cargo-nono
, it seems to be made precisely for this use case.
Thanks for the updates!
However, I would still think that a mention in lib.rs
and README.md
(the one in rstar
) would be appropriate. Some short sentence like
# no-std support
rstar supports `no-std` environments by default but requires the `alloc` crate.
I added a notice to the list of features (at least to me, no_std
compatibiliy is a feaure :). A further note: When I run cargo fmt
, even lines which I did not touch are changed. Maybe cargo fmt --check
would also make sense in the CI?
@Stoeoef regarding checks of the
no_std
compatibility, maybe we should usecargo-nono
, it seems to be made precisely for this use case.
I've checked cargo-nono
. Unfortunately, it doesn't produce reliable results for rstar
- it marks some of its dependencies as no-std
even though they are fine (e.g. smallvec).
Thus, I think an additional check in the CI configuration would be more appropriate. That should consistently catch any conflicting no-std dependency.
Please let me know if I can help you out with anything CI related and I'll see what I can do!
I added a notice to the list of features (at least to me,
no_std
compatibiliy is a feaure :). A further note: When I runcargo fmt
, even lines which I did not touch are changed. Maybecargo fmt --check
would also make sense in the CI?
Thanks for adding the entry to the changelog, I agree that this should be included as a feature.
In regards to cargo fmt
: Captain hindsight agrees with you. However, let's keep this PR focussed for now. Feel free to revert / keep any formatting changes due to cargo fmt
as you like.
Please let me know if I can help you out with anything CI related and I'll see what I can do!
Please have a look at the workflow file, I believe that this could work but I'm not sure about my usage of env
Please let me know if I can help you out with anything CI related and I'll see what I can do!
Please have a look at the workflow file, I believe that this could work but I'm not sure about my usage of
env
Let's give it a
bors try
Lets try that again :)
bors try
:lock: Permission denied
Existing reviewers: click here to make wucke13 a reviewer
I'm a little concerned that bors will think everything has passed, even though the std step failed. I'll investigate this while retrying
bors try
That was my error, I forgot to add the new job to the needs
section of bors' ci-result
job despite the angry ALL CAPSLOCK WARNING WHICH TOLD ME TO DO SO.
bors try
I think we have it. I made another small adjustment in the naming of the ci job. If you have nothing left to do, I guess we are good to go?
Yes! I'm happy as a clam.
Thanks for your work on this PR!
bors r+
[x] I added an entry to
rstar/CHANGELOG.md
if knowledge of this change could be valuable to users.This is basically a redo of https://github.com/georust/rstar/pull/27 .
I'm not sure whether we should have theThis does not include any new features. Compilation is supported for bothalloc
feature or not. In the best case, we would haven an rstar implementation which can work without alloc - but my understanding of this implementation is rather limited. Currently, one needs to either pick thestd
or the alloc feature, picking none of them results in compilation failure. Maybe we can resort toheapless::Vec
in the future, but this for sure requires further modifications.std
andno_std
, but the latter requiresalloc
. For validation, I did this:cargo build --target thumbv7em-none-eabihf
cargo build
cargo build --release
cargo test
cargo test --release