|
@@ -89,7 +89,6 @@ If you have access to [`std`], i.e. not an embedded platform, you can use
|
|
|
Now, add your logic:
|
|
|
|
|
|
```rust
|
|
|
-#
|
|
|
use printf_compat::{format, output};
|
|
|
let mut s = String::new();
|
|
|
let bytes_written = format(str, args.as_va_list(), output::fmt_write(&mut s));
|
|
@@ -111,3 +110,17 @@ error.
|
|
|
[`defmt`]: https://defmt.ferrous-systems.com/
|
|
|
|
|
|
License: MIT OR Apache-2.0
|
|
|
+
|
|
|
+[`core::fmt`]: https://doc.rust-lang.org/core/fmt/index.html
|
|
|
+[`String`]: https://doc.rust-lang.org/std/string/struct.String.html
|
|
|
+[std::io::stdout]: https://doc.rust-lang.org/std/io/fn.stdout.html
|
|
|
+[`std`]: https://doc.rust-lang.org/std/index.html
|
|
|
+[`std::os::raw`]: https://doc.rust-lang.org/stable/std/os/raw/index.html
|
|
|
+[`cty`]: https://docs.rs/cty/0.2/cty/
|
|
|
+[output::fmt_write]: https://docs.rs/printf-compat/0.1.0/printf_compat/output/fn.fmt_write.html
|
|
|
+[`output::fmt_write`]: https://docs.rs/printf-compat/0.1.0/printf_compat/output/fn.fmt_write.html
|
|
|
+[output::fmt_write#differences]: https://docs.rs/printf-compat/0.1.0/printf_compat/output/fn.fmt_write.html#differences
|
|
|
+[output::io_write]: https://docs.rs/printf-compat/0.1.0/printf_compat/output/fn.io_write.html
|
|
|
+[`output`]: https://docs.rs/printf-compat/0.1.0/printf_compat/output/index.html
|
|
|
+[`format()`]: https://docs.rs/printf-compat/0.1.0/printf_compat/fn.format.html
|
|
|
+[`Argument`]: https://docs.rs/printf-compat/0.1.0/printf_compat/argument/struct.Argument.html
|