Skip to content

Implement no_std support#30

Merged
RazrFalcon merged 1 commit intoharfbuzz:masterfrom
CryZe:no-std
Feb 7, 2021
Merged

Implement no_std support#30
RazrFalcon merged 1 commit intoharfbuzz:masterfrom
CryZe:no-std

Conversation

@CryZe
Copy link
Copy Markdown
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/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
Copy Markdown
Collaborator

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Collaborator

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.

Turns out that supporting no_std is pretty trivial, so here are the
changes necessary for that.
@RazrFalcon RazrFalcon merged commit 82514f1 into harfbuzz:master Feb 7, 2021
@RazrFalcon
Copy link
Copy Markdown
Collaborator

Thanks.

@CryZe
Copy link
Copy Markdown
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