Compare commits
2 commits
335d18bfbc
...
2abd28c663
Author | SHA1 | Date | |
---|---|---|---|
2abd28c663 | |||
ca335ab3fc |
2 changed files with 2 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
||||||
name = "nettext"
|
name = "nettext"
|
||||||
description = "A text-based data format for cryptographic network protocols"
|
description = "A text-based data format for cryptographic network protocols"
|
||||||
authors = ["Alex Auvolat <alex@adnab.me>"]
|
authors = ["Alex Auvolat <alex@adnab.me>"]
|
||||||
version = "0.2.0"
|
version = "0.2.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "AGPL-3.0"
|
license = "AGPL-3.0"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
@ -13,7 +13,6 @@ readme = "README.md"
|
||||||
nom = "7.1"
|
nom = "7.1"
|
||||||
base64 = "0.13"
|
base64 = "0.13"
|
||||||
|
|
||||||
rand = "0.7"
|
|
||||||
dryoc = { version = "0.4", optional = true }
|
dryoc = { version = "0.4", optional = true }
|
||||||
serde = { version = "1.0", optional = true, features = ["derive"] }
|
serde = { version = "1.0", optional = true, features = ["derive"] }
|
||||||
|
|
||||||
|
|
|
@ -100,7 +100,7 @@ pub(crate) const DICT_OPEN: u8 = b'{';
|
||||||
pub(crate) const DICT_CLOSE: u8 = b'}';
|
pub(crate) const DICT_CLOSE: u8 = b'}';
|
||||||
pub(crate) const DICT_ASSIGN: u8 = b'=';
|
pub(crate) const DICT_ASSIGN: u8 = b'=';
|
||||||
pub(crate) const DICT_DELIM: u8 = b',';
|
pub(crate) const DICT_DELIM: u8 = b',';
|
||||||
pub(crate) const STR_EXTRA_CHARS: &[u8] = b"._-+*?";
|
pub(crate) const STR_EXTRA_CHARS: &[u8] = b"._-+*?@:";
|
||||||
|
|
||||||
pub(crate) fn is_string_char(c: u8) -> bool {
|
pub(crate) fn is_string_char(c: u8) -> bool {
|
||||||
c.is_ascii_alphanumeric() || STR_EXTRA_CHARS.contains(&c)
|
c.is_ascii_alphanumeric() || STR_EXTRA_CHARS.contains(&c)
|
||||||
|
|
Loading…
Reference in a new issue