Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Difference From blather-0.10.0 To blather-0.10.1
|
2024-09-22
| ||
| 09:18 | Remove PartialEq from Error. Change Error::IO to carry std::io::Error. Lots of pedantic clippy fixes. check-in: 28c3fe56c4 user: jan tags: trunk | |
|
2024-08-06
| ||
| 13:06 | Relase maintenance. check-in: fcdac3ca7e user: jan tags: blather-0.10.1, trunk | |
| 13:02 | Happy clippy. check-in: 1a365cef19 user: jan tags: trunk | |
|
2024-05-01
| ||
| 05:25 | Add a utility function for receiving an expected telegram over a Frame'd stream. check-in: b4762b2871 user: jan tags: trunk | |
|
2024-02-23
| ||
| 14:32 | Changlog fixup. check-in: a73f934f4c user: jan tags: blather-0.10.0, trunk | |
| 14:31 | Release maintenance. check-in: 8d3690239e user: jan tags: trunk | |
Changes to .efiles.
1 2 3 4 5 6 7 8 9 10 11 12 13 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | + | Cargo.toml README.md www/index.md www/changelog.md src/err.rs src/lib.rs src/types.rs src/types/telegram.rs src/types/params.rs src/types/kvlines.rs src/types/validators.rs src/codec.rs src/codec/utils.rs tests/*.rs |
Changes to Cargo.toml.
1 2 | 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 | - + - + - - - + + + - + - - + | [package] name = "blather" |
Changes to README.md.
1 2 | 1 2 3 4 5 | - + | # blather |
Changes to src/codec.rs.
1 2 3 4 5 6 7 8 9 | 1 2 3 4 5 6 7 8 9 10 11 | + + |
//! A [`tokio_util::codec`] Codec that is used to encode and decode the
//! blather protocol.
pub mod utils;
use std::{
fmt,
{cmp, collections::HashMap, mem}
};
use bytes::{BufMut, Bytes, BytesMut};
|
| ︙ |
Added src/codec/utils.rs.
|
Changes to src/types/telegram.rs.
| ︙ | |||
482 483 484 485 486 487 488 489 490 491 492 493 494 495 | 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 | + + + + + + + + + + |
fn from(params: Params) -> Self {
Telegram {
params,
..Default::default()
}
}
}
impl TryFrom<(&str, Params)> for Telegram {
type Error = Error;
fn try_from(t: (&str, Params)) -> Result<Self, Self::Error> {
let mut tg = Telegram::new_topic(t.0)?;
tg.params = t.1;
Ok(tg)
}
}
impl From<HashMap<String, String>> for Telegram {
fn from(hm: HashMap<String, String>) -> Self {
Telegram {
params: Params::from(hm),
..Default::default()
}
|
| ︙ |
Changes to tests/telegram.rs.
| 1 2 3 4 5 6 7 8 9 | - + + |
|
| ︙ | |||
112 113 114 115 116 117 118 119 120 | 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | + + + + + + + + + |
let mut tg = Telegram::new();
assert_eq!(
tg.set_topic("Some Topic"),
Err(Error::BadFormat("Invalid topic character".to_string()))
);
}
#[test]
fn create_from_tuple() {
let mut params = Params::new();
params.add_str("my", "word").unwrap();
let tg = Telegram::try_from(("Hello", params)).unwrap();
assert_eq!(tg.get_str("my"), Some("word"));
}
// vim: set ft=rust et sw=2 ts=2 sts=2 cinoptions=2 tw=79 :
|
Changes to www/changelog.md.
1 2 3 4 5 6 | 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 | - + + + + + + + + + + + + + + | # Change Log ⚠️ indicates a breaking change. ## [Unreleased] |
| ︙ |
Changes to www/index.md.
1 2 | 1 2 3 4 5 6 7 8 9 10 | - + | # blather |
| ︙ |