Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Difference From bndpresbufch-0.1.1 To bndpresbufch-0.1.2
2024-10-05
| ||
18:38 | Release maintenance. Leaf check-in: b7e46a1ab9 user: jan tags: bndpresbufch-0.1.2, trunk | |
18:34 | Update bndpresbufq to 0.1.4 for queue size bugfix. check-in: 5b3ae18f20 user: jan tags: trunk | |
03:33 | Update top module example. check-in: 12d539cfc9 user: jan tags: trunk | |
02:37 | Happy pedantic clippy. check-in: ab1ab20aac user: jan tags: bndpresbufch-0.1.1, trunk | |
02:34 | Code normalization. check-in: b3e32c1bfc user: jan tags: trunk | |
Changes to Cargo.toml.
1 2 | [package] name = "bndpresbufch" | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | [package] name = "bndpresbufch" version = "0.1.2" edition = "2021" license = "0BSD" # https://crates.io/category_slugs categories = [ "concurrency", "data-structures" ] keywords = [ "channel" ] repository = "https://repos.qrnch.tech/pub/bndpresbufch" description = "Bounds-preserving channel for passing buffers." rust-version = "1.56" exclude = [ ".fossil-settings", ".efiles", ".fslckout", "www", "bacon.toml", "rustfmt.toml" ] [dependencies] parking_lot = { version = "0.12.3" } bndpresbufq = { version = "0.1.4" } rustc-hash = { version = "2.0.0" } [dev-dependencies] tokio = { version = "1.40.0", features = [ "macros", "rt-multi-thread" ] } [lints.clippy] all = { level = "deny", priority = -1 } pedantic = { level = "warn", priority = -1 } nursery = { level = "warn", priority = -1 } cargo = { level = "warn", priority = -1 } |
Changes to src/lib.rs.
︙ | ︙ | |||
20 21 22 23 24 25 26 27 28 29 30 31 32 33 | //! tx.force_push(vec![3, 4]).unwrap(); //! //! // Fail to add more data //! assert_eq!(tx.try_push(vec![5]), Err(Error::WontFit(vec![5]))); //! //! // Force push data to the queue, ejecting the oldest buffer //! tx.force_push(vec![6]).unwrap(); //! //! assert_eq!(rx.pop(), Some(vec![3, 4])); //! assert_eq!(rx.try_pop(), Ok(Some(vec![6]))); //! assert_eq!(rx.try_pop(), Ok(None)); //! ``` mod err; | > > > > > > > | 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | //! tx.force_push(vec![3, 4]).unwrap(); //! //! // Fail to add more data //! assert_eq!(tx.try_push(vec![5]), Err(Error::WontFit(vec![5]))); //! //! // Force push data to the queue, ejecting the oldest buffer //! tx.force_push(vec![6]).unwrap(); //! //! // Pull off a buffer that must be handled. //! // Then drop the managed node before marking it has handled, which should //! // put it back onto the channel. //! let n = rx.pop_managed().unwrap(); //! assert_eq!(*n, [3, 4]); //! drop(n); //! //! assert_eq!(rx.pop(), Some(vec![3, 4])); //! assert_eq!(rx.try_pop(), Ok(Some(vec![6]))); //! assert_eq!(rx.try_pop(), Ok(None)); //! ``` mod err; |
︙ | ︙ |
Changes to www/changelog.md.
1 2 3 4 | # Change Log ## [Unreleased] | | | > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | # Change Log ## [Unreleased] [Details](/vdiff?from=bndpresbufch-0.1.2&to=trunk) ### Added ### Changed ### Removed --- ## [0.1.2] - 2024-10-05 [Details](/vdiff?from=bndpresbufch-0.1.1&to=bndpresbufch-0.1.2) ### Changed - Update `bndpresbufq` to `0.1.4` to get queue size bugfix. --- ## [0.1.1] (yanked) - 2024-10-05 [Details](/vdiff?from=bndpresbufch-0.1.0&to=bndpresbufch-0.1.1) ### Added - Added ability to take buffers off channel that need to be explicitly handled or they will be returned to the channel. |
︙ | ︙ |