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

Implement no_std support #30

Merged
merged 1 commit into from
Feb 7, 2021
Merged

Implement no_std support #30

merged 1 commit into from
Feb 7, 2021

Conversation

CryZe
Copy link
Contributor

@CryZe CryZe commented Feb 7, 2021

Turns out that supporting no_std is pretty trivial, so here are the changes necessary for that.

src/tag_table.rs Show resolved Hide resolved
src/buffer.rs Outdated
@@ -1,4 +1,5 @@
use std::convert::TryFrom;
use alloc::{string::String, vec::Vec};
use core::{convert::TryFrom, fmt, mem};
Copy link
Owner

Choose a reason for hiding this comment

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

I would like to keep core:: everywhere.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure what you mean with that. You mean without the { } or what?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh you mean without importing the modules?

Copy link
Owner

Choose a reason for hiding this comment

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

Yes. Do not use use for core. alloc is fine.

src/tables/aat.rs Outdated Show resolved Hide resolved
src/tables/mod.rs Outdated Show resolved Hide resolved
Turns out that supporting no_std is pretty trivial, so here are the
changes necessary for that.
@RazrFalcon RazrFalcon merged commit 82514f1 into RazrFalcon:master Feb 7, 2021
@RazrFalcon
Copy link
Owner

Thanks.

@CryZe
Copy link
Contributor Author

CryZe commented Feb 7, 2021

Thank you as well :D

@CryZe CryZe deleted the no-std branch February 7, 2021 15:42
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.

2 participants