#sequence #error #ufotofu

no-std ufotofu

Abstractions for lazily consuming and producing sequences

13 releases (5 breaking)

0.6.3 Mar 17, 2025
0.6.1 Jan 2, 2025
0.6.0 Dec 5, 2024
0.5.1 Nov 30, 2024
0.3.0 Jul 21, 2024

#640 in Rust patterns

Download history 210/week @ 2024-12-04 65/week @ 2024-12-11 5/week @ 2024-12-18 236/week @ 2025-01-01 64/week @ 2025-01-08 29/week @ 2025-01-15 8/week @ 2025-01-29 16/week @ 2025-02-19 14/week @ 2025-02-26 11/week @ 2025-03-05 235/week @ 2025-03-12 34/week @ 2025-03-19

298 downloads per month
Used in 3 crates

MIT/Apache

165KB
2.5K SLoC

UFOTOFU

Ufotofu provides APIs for lazily producing or consuming sequences of arbitrary length. Highlights include

  • bulk data transfer without temporary buffers,
  • freely choosable error and item types, even for readers and writers,
  • meaningful subtyping relations between streams and readers, and between sinks and writers,
  • the ability to represent finite and infinite sequences on the type level, and
  • nostd support.

Read the docs here.

You can find an in-depth discussion of the API designs here.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option. Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


This project was initially funded through the NGI0 Core Fund, a fund established by NLnet with financial support from the European Commission's Next Generation Internet programme, under the aegis of DG Communications Networks, Content and Technology under grant agreement No 101092990.

Dependencies

~165KB