Skip to content
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

Allow macro ndarray::s! in no_std. #1154

Merged
merged 3 commits into from Mar 2, 2022

Conversation

makotokato
Copy link
Contributor

We cannot use ndarray::s! in no_std, but I would like to use it even if no_std.

@zbraniecki
Copy link

Hi @bluss. Do you know when you may have time to look into this PR? It's starting to block us in icu4x.

src/slice.rs Outdated Show resolved Hide resolved
Copy link
Member

@jturner314 jturner314 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a couple of comments -- I think some of the changes are unnecessary. AFAIK, the only necessary change is changing ::std to ::core in the macro.

src/slice.rs Outdated Show resolved Hide resolved
@jturner314 jturner314 merged commit 3124410 into rust-ndarray:master Mar 2, 2022
@jturner314
Copy link
Member

Thanks!

@makotokato makotokato deleted the no_std-macro_rules-s branch May 25, 2022 00:36
@Manishearth
Copy link

@jturner314 woudl it be possible to get a release with this fix?

@sffc
Copy link

sffc commented Jul 28, 2022

Hey @jturner314! Do you think you could release an update to ndarray with this fix? We'd like to depend on it when we release icu4x in the next couple of weeks.

jturner314 pushed a commit to jturner314/ndarray that referenced this pull request Jul 30, 2022
jturner314 pushed a commit that referenced this pull request Jul 30, 2022
@jturner314
Copy link
Member

@makotokato, @zbraniecki, @Manishearth, @sffc I've released version 0.15.5, which includes this change.

@makotokato Thanks for the PR!

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.

None yet

5 participants