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

Add ability to use Rust formatted strings with cFE syslog, events #4

Open
zec opened this issue Aug 29, 2022 · 0 comments
Open

Add ability to use Rust formatted strings with cFE syslog, events #4

zec opened this issue Aug 29, 2022 · 0 comments

Comments

@zec
Copy link
Member

zec commented Aug 29, 2022

Right now, with the use of printf-wrap, n2o4 has decent support for printf(3)-type formatting with syslog entries and events. However, Rust has its own string-formatting system. It would be good to support using that instead when making syslog entries or events for a more Rustic experience.

Some things that may come in handy when creating that:

core::write
core::fmt::Write
core::format_args

In particular, implementing Write for a "[u8; N] plus index-into-buffer" type would allow all this to be done without heap allocations.

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

No branches or pull requests

1 participant