commit_hash
stringlengths
40
40
author
stringlengths
1
57
date
timestamp[s]date
2010-07-26 04:45:09
2026-04-14 18:21:10
message
stringlengths
8
1.39M
diff
stringlengths
68
51.2k
files_changed
int64
1
136
insertions
int64
0
2.35k
deletions
int64
0
1.9k
266940d0ed8683d168b48f3dcace4ecb99b8d4af
Guillaume Gomez
2015-03-10T22:56:12
First commit
diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..e2ceeac --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,16 @@ +[package] +name = "system" +version = "0.0.1" +authors = ["guillaume1.gomez@gmail.com"] + +description = "Library to handle processus" +repository = "https://github.com/GuillaumeGomez/system...
5
339
0
bc52d2102cb496fb9074731d3ab590e9b24bed1e
Benjamin Saunders
2025-04-19T16:52:13
Bump version
diff --git a/Cargo.toml b/Cargo.toml index c558060..8d0b6bb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lru-slab" -version = "0.1.1" +version = "0.1.2" edition = "2021" description = "Pre-allocated storage with constant-time LRU tracking" authors = ["Benjamin Saunders <ben.e.saunders...
1
1
1
cacbbf9df3129bcd285b22fe8ec0fa1a7a1a8916
Benjamin Saunders
2025-04-19T16:40:45
Fix overflow on insert in very large containers
diff --git a/src/lib.rs b/src/lib.rs index 7eb5ed6..258551c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -77,7 +77,11 @@ impl<T> LruSlab<T> { Some(id) => id, None => { let len = self.capacity(); - let cap = 2 * len.max(2); + // Ensure `NONE` never ...
1
5
1
01d64967c894607541d722c8eda07bafb73121b9
Benjamin Saunders
2024-05-31T08:06:27
vacant_key
diff --git a/src/lib.rs b/src/lib.rs index 8d88c9b..7eb5ed6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -61,6 +61,14 @@ impl<T> LruSlab<T> { self.slots.len() as u32 } + /// The slot that will be returned by the next call to `insert`, unless `remove` is called first + pub fn vacant_key(&self) -> u3...
1
18
0
9f82c78c2854b44a63c457745eb285d5956487c4
Benjamin Saunders
2024-05-31T04:46:19
Test reverse iteration
diff --git a/src/lib.rs b/src/lib.rs index d897bc6..8d88c9b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -395,7 +395,7 @@ impl IterState { #[cfg(test)] mod tests { - use alloc::{format, string::String}; + use alloc::{format, string::String, vec::Vec}; use super::*; @@ -441,4 +441,12 @@ mod tests { ...
1
9
1
1bff880f8647b21d8fe68507e5b1771b19009bfb
Benjamin Saunders
2024-05-31T04:44:01
Simplify Debug impl
diff --git a/src/lib.rs b/src/lib.rs index 99d58f0..d897bc6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -249,11 +249,7 @@ impl<'a, T> IntoIterator for &'a mut LruSlab<T> { impl<T: fmt::Debug> fmt::Debug for LruSlab<T> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - let mut m = f.debug_map(...
1
1
5
b0c3266a117e9505c9fb5c8d36d5928e694ca598
Benjamin Saunders
2024-05-31T04:43:36
Bump version
diff --git a/Cargo.toml b/Cargo.toml index f8c86c3..c558060 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lru-slab" -version = "0.1.0" +version = "0.1.1" edition = "2021" description = "Pre-allocated storage with constant-time LRU tracking" authors = ["Benjamin Saunders <ben.e.saunders...
1
1
1
158dded364f95b04341d8fee209f11aec25d6855
Benjamin Saunders
2024-05-31T04:40:01
Consistent assert message
diff --git a/src/lib.rs b/src/lib.rs index a09e297..99d58f0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -170,7 +170,7 @@ impl<T> LruSlab<T> { fn freshen(&mut self, slot: u32) { if self.slots[slot as usize].prev == NONE { // This is already the freshest slot, so we don't need to do anything - ...
1
1
1
2c1d007787472489757a2c999b8d55558b5f0842
Benjamin Saunders
2024-05-31T04:34:39
IntoIterator
diff --git a/src/lib.rs b/src/lib.rs index ec260b3..f903db7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -227,6 +227,26 @@ impl<T> FromIterator<T> for LruSlab<T> { } } +impl<'a, T> IntoIterator for &'a LruSlab<T> { + type Item = (u32, &'a T); + + type IntoIter = Iter<'a, T>; + + fn into_iter(self) -> Se...
1
20
0
23e7207566752c91ee0189505bd5ef14e0ef681a
Benjamin Saunders
2024-05-31T04:26:32
FromIterator
diff --git a/src/lib.rs b/src/lib.rs index 1adc919..ec260b3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -216,6 +216,17 @@ impl<T> Default for LruSlab<T> { } } +impl<T> FromIterator<T> for LruSlab<T> { + fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self { + let iter = iter.into_iter(); + ...
1
11
0
5bdafdc9f83c1889a543523798add04cb05799eb
Benjamin Saunders
2024-05-31T04:17:17
impl FusedIterator
diff --git a/src/lib.rs b/src/lib.rs index e957803..1adc919 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,7 +6,7 @@ extern crate alloc; use alloc::boxed::Box; -use core::{marker::PhantomData, ptr::addr_of_mut}; +use core::{iter::FusedIterator, marker::PhantomData, ptr::addr_of_mut}; /// A random-access table th...
1
5
1
6d596b16e11ba5d49df76c31da4d16d45913ba04
Benjamin Saunders
2024-05-31T03:58:34
Fix lint
diff --git a/src/lib.rs b/src/lib.rs index a2504c0..e957803 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -30,7 +30,7 @@ impl<T> LruSlab<T> { /// Create an [`LruSlab`] that can store at least `capacity` elements without reallocating pub fn with_capacity(capacity: u32) -> Self { - assert!(capacity != u3...
1
1
1
c0f0fae5198a51c58d26415b10f0aa3c9a71b8eb
Benjamin Saunders
2024-05-31T03:41:03
Factor out iterator state
diff --git a/src/lib.rs b/src/lib.rs index 67dbe08..37487bc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -138,11 +138,10 @@ impl<T> LruSlab<T> { /// Walk the container from most to least recently used pub fn iter(&self) -> Iter<'_, T> { + let state = IterState::new(self); Iter { ...
1
52
23
7ef0bb96505e6e9443602c3f60fc475a8c49b3aa
Benjamin Saunders
2024-05-31T03:38:24
Include slot in iterator item
diff --git a/src/lib.rs b/src/lib.rs index 84834d7..67dbe08 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -226,8 +226,8 @@ pub struct Iter<'a, T> { } impl<'a, T> Iterator for Iter<'a, T> { - type Item = &'a T; - fn next(&mut self) -> Option<&'a T> { + type Item = (u32, &'a T); + fn next(&mut self) -> Opti...
1
10
10
1a0527e2b321d09d65f273d906bd6c9ae949564e
Benjamin Saunders
2024-05-31T03:34:00
Unwrap SlotId newtype
diff --git a/src/lib.rs b/src/lib.rs index bfd6573..84834d7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,11 +12,11 @@ use alloc::boxed::Box; pub struct LruSlab<T> { slots: Box<[Slot<T>]>, /// Most recently used - head: SlotId, + head: u32, /// Least recently used - tail: SlotId, + tail: u...
1
50
68
2d7e1e4f78cf7b4cea907830f8949ab7c87e612a
Benjamin Saunders
2024-05-31T03:31:01
no-std support
diff --git a/Cargo.toml b/Cargo.toml index bc5c4e0..f8c86c3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" description = "Pre-allocated storage with constant-time LRU tracking" authors = ["Benjamin Saunders <ben.e.saunders@gmail.com>"] license = "MIT OR Apache-2.0 OR Zlib" -categories = ["...
2
8
1
cc65342285bf819d5f9071e813455179b0975ba6
Benjamin Saunders
2024-05-31T03:31:01
Remove unnecessary intermediate allocations
diff --git a/src/lib.rs b/src/lib.rs index 37078b7..9fc9b66 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -36,8 +36,7 @@ impl<T> LruSlab<T> { SlotId(n + 1) }, }) - .collect::<Vec<_>>() - .into(), + .collect(), ...
1
2
4
1c77df715156c98b0be17c5460d55ff82cb641ef
Benjamin Saunders
2024-05-31T03:30:46
Fill in documentation
diff --git a/src/lib.rs b/src/lib.rs index 1432d3d..37078b7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,7 @@ +//! Pre-allocated storage with constant-time LRU tracking + +#![warn(missing_docs)] + /// A random-access table that maintains an LRU list in constant time #[derive(Clone)] pub struct LruSlab<T> { @@...
1
14
2
0e8e590ba936ff010b1cf7f4bb4c5d4d4ee38c64
William Bartlett
2025-12-27T18:38:03
🎨 specify confusing elided lifetimes (#247) * fix: specify confusing elided lifetimes * 🐛 fix doctype test case
diff --git a/src/de/reader.rs b/src/de/reader.rs index 0297c6d..ef30287 100644 --- a/src/de/reader.rs +++ b/src/de/reader.rs @@ -85,7 +85,7 @@ pub trait Reader<R: Read> { /// Consume the next event fn next(&mut self) -> Result<Event>; /// Create a child buffer whose cursor starts at the same position as ...
2
5
5
8617bbfbe37148864fb1f9b199bcb0d489a94eae
William Bartlett
2025-11-14T10:35:03
🔖 Version 0.8.2
diff --git a/Cargo.toml b/Cargo.toml index 9eb5fe2..e7ef4b4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ description = "xml-rs based deserializer for Serde (compatible with 1.0)" license = "MIT" name = "serde-xml-rs" repository = "https://github.com/RReverser/serde-xml-rs" -version = "0.8.1" +version = "...
1
1
1
5d1a4ee6848ac7658ac7ce64f80ab2f67e73596d
Mewily
2025-11-14T10:15:03
✨ Add Serializer::into_inner method to extract the writer (#245)
diff --git a/src/ser/mod.rs b/src/ser/mod.rs index ccae4a9..b47d4de 100644 --- a/src/ser/mod.rs +++ b/src/ser/mod.rs @@ -86,6 +86,10 @@ impl<W: Write> Serializer<W> { Self::from_config(SerdeXml::default(), writer) } + pub fn into_inner(self) -> W { + self.writer.into_inner() + } + pub(...
3
62
0
a659f21d990d2449714228d80acd96e75423e850
Manuel
2025-06-16T10:26:20
⬆️ upgrade thiserror dependency to version 2.0 (#235)
diff --git a/Cargo.toml b/Cargo.toml index 23a9070..ddbb559 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ edition = "2021" log = "0.4" serde = "1.0" xml-rs = "0.8" -thiserror = "1.0" +thiserror = "2.0" [dev-dependencies] serde = { version = "1.0", features = ["derive"] }
1
1
1
20efc42b1e3647ada041191c5fde1c1d6fe5d22e
William Bartlett
2025-06-01T07:37:52
🔖 Version 0.8.1
diff --git a/Cargo.toml b/Cargo.toml index f892b5f..23a9070 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ description = "xml-rs based deserializer for Serde (compatible with 1.0)" license = "MIT" name = "serde-xml-rs" repository = "https://github.com/RReverser/serde-xml-rs" -version = "0.8.0" +version = "...
1
1
1
48a96a3156dd198876007f9ca082c5e49a1b954a
William Bartlett
2025-06-01T07:35:17
🐛 remove leftover println (#233)
diff --git a/src/ser/map.rs b/src/ser/map.rs index b38066a..a31c263 100644 --- a/src/ser/map.rs +++ b/src/ser/map.rs @@ -168,7 +168,6 @@ impl<W: Write> serde::ser::SerializeMap for MapSerializer<'_, W> { T: ?Sized + serde::Serialize, { let element_name = std::mem::replace(&mut self.element_name, ...
1
0
1
c0f2c07f909dc4369e08f6ee31db7ae7ae8694a4
William Bartlett
2025-04-30T12:17:29
🔖 Version 0.7.1
diff --git a/Cargo.toml b/Cargo.toml index 11cd532..28bdc54 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ description = "xml-rs based deserializer for Serde (compatible with 1.0)" license = "MIT" name = "serde-xml-rs" repository = "https://github.com/RReverser/serde-xml-rs" -version = "0.7.0" +version = "...
1
1
1
5eb0e42ebec5473f67cedbca5160de93e1b35a66
Jeff Putlock
2025-04-30T06:29:25
Defer document declaration generation to xml-rs crate (#231) * don't manually start the document * add test
diff --git a/src/ser/mod.rs b/src/ser/mod.rs index a31efd6..661fa62 100644 --- a/src/ser/mod.rs +++ b/src/ser/mod.rs @@ -109,18 +109,9 @@ where self.next(XmlEvent::characters(s)) } - fn start_document(&mut self) -> Result<()> { - self.next(XmlEvent::StartDocument { - encoding: Defau...
1
30
9
b1e2aaa5042bf7d2e9c89d2f35d24ad56ba66274
William Bartlett
2025-04-19T18:47:32
🔖 Version 0.7.0
diff --git a/Cargo.toml b/Cargo.toml index d70c7e9..11cd532 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,10 +1,10 @@ [package] authors = ["Ingvar Stepanyan <me@rreverser.com>"] -description = "xml-rs based deserializer for Serde (compatible with 0.9+)" +description = "xml-rs based deserializer for Serde (compatible...
1
2
2
84b964fb200eea9e53db264c9eede4a53a12f125
William Bartlett
2025-04-09T13:30:12
🎨 Clippy suggestions (#226) * chore: Apply clippy suggestions * 🎨 Clippy suggestions --------- Co-authored-by: Jayson Reis <santosdosreis@gmail.com>
diff --git a/src/de/buffer.rs b/src/de/buffer.rs index 2760acb..71ea1ea 100644 --- a/src/de/buffer.rs +++ b/src/de/buffer.rs @@ -12,7 +12,7 @@ pub trait BufferedXmlReader<R: Read> { fn peek(&mut self) -> Result<&XmlEvent>; /// Spawn a child buffer whose cursor starts at the same position as this buffer. - ...
11
70
96
17380a7e5758727da8c5c493e212f76bc2f4da35
William Bartlett
2025-04-08T20:23:49
✅ add testing of snippets in README (#224)
diff --git a/src/lib.rs b/src/lib.rs index 41d9c82..0476c09 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -192,3 +192,7 @@ pub use crate::de::{from_reader, from_str, Deserializer}; pub use crate::error::Error; pub use crate::ser::{to_string, to_writer, Serializer}; pub use xml::reader::{EventReader, ParserConfig}; + +...
1
4
0
45ac5f870339b86515da2e7648f6d0e8ba1e21cf
William Bartlett
2025-04-08T19:51:08
✨ Allow passing custom XML emitter (#222)
diff --git a/Cargo.toml b/Cargo.toml index 1a4a29d..d70c7e9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,3 +18,4 @@ serde = { version = "1.0", features = ["derive"] } simple_logger = "2.1" docmatic = "0.1" rstest = "0.12" +indoc = "2.0.6" diff --git a/src/ser/mod.rs b/src/ser/mod.rs index 55708de..b6a1729 100644 ...
3
60
1
42538f0aa8997adf69436d41d5be4708ed98a47f
William Bartlett
2025-04-08T19:48:15
🐛 Fix tests due to xml_rs updates (#223) * fix should_be to be uppercase in test_serialize_enum Signed-off-by: Ryosuke Yasuoka <ryasuoka@redhat.com> * Fix test cases for special characters Signed-off-by: Ryosuke Yasuoka <ryasuoka@redhat.com> * 🐛 Fix bugs in tests --------- Signed-off-by: Ryosuke Yasuoka <ryasu...
diff --git a/src/ser/mod.rs b/src/ser/mod.rs index 8130a8d..55708de 100644 --- a/src/ser/mod.rs +++ b/src/ser/mod.rs @@ -436,7 +436,7 @@ mod tests { } let mut buffer = Vec::new(); - let should_be = "<?xml version=\"1.0\" encoding=\"utf-8\"?><Boolean>true</Boolean>"; + let should_be = "...
4
12
21
920e54d059efe1dce4cef7f9728ef70e9d47b7b9
William Bartlett
2022-08-31T18:35:41
🔖 Version 0.6.0
diff --git a/Cargo.toml b/Cargo.toml index 1b4d1cd..1a4a29d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ description = "xml-rs based deserializer for Serde (compatible with 0.9+)" license = "MIT" name = "serde-xml-rs" repository = "https://github.com/RReverser/serde-xml-rs" -version = "0.5.2" +version = ...
1
1
1
1ea1c322255dbefc3db7e3aad28aaf7894be0725
Richard Brodie
2022-08-31T08:29:07
fix: replace debug! logs with trace! in de module (#176) It's quite common to want to set log level to debug especially when using an external logging service. When doing this serde_xml_rs produces an excessive number of debug logs.
diff --git a/Cargo.toml b/Cargo.toml index c9876cc..1b4d1cd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ description = "xml-rs based deserializer for Serde (compatible with 0.9+)" license = "MIT" name = "serde-xml-rs" repository = "https://github.com/RReverser/serde-xml-rs" -version = "0.5.1" +version = ...
2
4
4
094c922bff7389205113df54308eced604ff7f8f
William Bartlett
2022-02-19T19:40:56
:sparkles: Complete serializer (#173)
diff --git a/Cargo.toml b/Cargo.toml index 1f6a0a8..c9876cc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,3 +17,4 @@ thiserror = "1.0" serde = { version = "1.0", features = ["derive"] } simple_logger = "2.1" docmatic = "0.1" +rstest = "0.12" diff --git a/src/error.rs b/src/error.rs index 5061b52..50a15c0 100644 --...
12
828
425
d062ae520cf4dfefe0ed0ae6f72c59c5149d7e78
William Bartlett
2022-02-18T10:21:38
:bug: fix logging during integration test (#172)
diff --git a/Cargo.toml b/Cargo.toml index cab2116..1f6a0a8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,5 +15,5 @@ thiserror = "1.0" [dev-dependencies] serde = { version = "1.0", features = ["derive"] } -simple_logger = "1.0" +simple_logger = "2.1" docmatic = "0.1" diff --git a/tests/common/mod.rs b/tests/comm...
5
15
17
c4d55ffe6c2afcefaa38ba2c465d52ee449f3f9f
William Bartlett
2022-02-17T15:48:37
:recycle: cleanup (#171)
diff --git a/src/de/mod.rs b/src/de/mod.rs index b5b06cb..9e9b89d 100644 --- a/src/de/mod.rs +++ b/src/de/mod.rs @@ -21,9 +21,7 @@ mod var; /// A convenience method for deserialize some object from a string. /// /// ```rust -/// # #[macro_use] -/// # extern crate serde; -/// # extern crate serde_xml_rs; +/// # use s...
4
9
20
2a13dbd3f6ae77e67d7d329e7fce0b66f2d16d05
William Bartlett
2021-09-21T07:57:17
🔖 Version 0.5.1
diff --git a/Cargo.toml b/Cargo.toml index 92fc357..09ea859 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ description = "xml-rs based deserializer for Serde (compatible with 0.9+)" license = "MIT" name = "serde-xml-rs" repository = "https://github.com/RReverser/serde-xml-rs" -version = "0.5.0" +version = ...
1
1
1
2d2e8641def199cc7e2eb362a99d99ed23428c84
William Bartlett
2021-09-18T19:23:29
📝 Example with EventReader (#163) #141
diff --git a/src/lib.rs b/src/lib.rs index ab10690..e1ef1df 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -156,6 +156,37 @@ //! assert_eq!(plate_appearance.events[0], Event::Pitch(Pitch { speed: 95, r#type: PitchType::FourSeam, outcome: PitchOutcome::Ball })); //! } //! ``` +//! +//! ## Custom EventReader +//! +//...
1
31
0
c34fe998609a9315498850d7013d0ecc5c43e84e
William Bartlett
2021-09-03T19:19:17
Rust 2018 (#153) * :arrow_up: Rust 2018 edition
diff --git a/Cargo.toml b/Cargo.toml index 06b4c19..92fc357 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,6 +5,7 @@ license = "MIT" name = "serde-xml-rs" repository = "https://github.com/RReverser/serde-xml-rs" version = "0.5.0" +edition = "2018" [dependencies] log = "0.4" diff --git a/src/de/buffer.rs b/src/de...
15
39
65
3101016a09bb14ac98fd8bbde9f19291dae16d24
William Bartlett
2021-08-10T15:22:50
🔖 Version 0.5.0
diff --git a/Cargo.toml b/Cargo.toml index 6a79480..06b4c19 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ description = "xml-rs based deserializer for Serde (compatible with 0.9+)" license = "MIT" name = "serde-xml-rs" repository = "https://github.com/RReverser/serde-xml-rs" -version = "0.4.1" +version = ...
1
1
1
bab6a06b9a47e13add2bc6ca5f0ce519a1411c36
William Bartlett
2021-03-20T18:33:32
:art: Apply formatting (#152)
diff --git a/src/de/map.rs b/src/de/map.rs index 328ee1e..79f7985 100644 --- a/src/de/map.rs +++ b/src/de/map.rs @@ -20,7 +20,11 @@ pub struct MapAccess<'a, R: 'a + Read, B: BufferedXmlReader<R>> { } impl<'a, R: 'a + Read, B: BufferedXmlReader<R>> MapAccess<'a, R, B> { - pub fn new(de: &'a mut Deserializer<R, B>...
5
29
20
3d9013eb007d4ba4f0bc65dc19ed6a2e2836b9bf
Rai
2021-03-19T20:26:56
Migrate to builder pattern for initializing SimpleLogger (#150)
diff --git a/tests/failures.rs b/tests/failures.rs index ca51f6b..3306c5a 100644 --- a/tests/failures.rs +++ b/tests/failures.rs @@ -7,6 +7,11 @@ extern crate log; extern crate simple_logger; use serde_xml_rs::from_str; +use simple_logger::SimpleLogger; + +fn init_logger() { + let _ = SimpleLogger::new().init();...
3
50
35
8571c308f6fd6838db81f8c6fbb3bfbe3d7e69d4
Toby Dimmick
2021-03-19T20:00:21
Support deserializing sequences from non-contiguous elements (#143) Co-authored-by: Toby Dimmick <Toby.Dimmick@bistech.co.uk>
diff --git a/src/de/buffer.rs b/src/de/buffer.rs new file mode 100644 index 0000000..24c5e94 --- /dev/null +++ b/src/de/buffer.rs @@ -0,0 +1,168 @@ +use error::Result; +use std::{collections::VecDeque, io::Read}; +use xml::reader::{EventReader, XmlEvent}; + +/// Retrieve XML events from an underlying reader. +pub trait...
6
603
85
3af77b9a2596ce70e3d97ae32dd9a66f0ddc5eab
William Bartlett
2021-03-19T19:47:11
:bug: Fixed broken tests (#151)
diff --git a/Cargo.toml b/Cargo.toml index fa4d9b9..6a79480 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,10 +9,10 @@ version = "0.4.1" [dependencies] log = "0.4" serde = "1.0" -xml-rs = "0.8.0" +xml-rs = "0.8" thiserror = "1.0" [dev-dependencies] serde_derive = "1.0" -simple_logger = "1.0.1" -docmatic = "0.1....
2
3
34
b6535a500d29c06393f9eecb2072e0be536bd8a6
William Bartlett
2021-01-10T13:11:45
🔖 Version 0.4.1
diff --git a/Cargo.toml b/Cargo.toml index a76a5bf..fa4d9b9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ description = "xml-rs based deserializer for Serde (compatible with 0.9+)" license = "MIT" name = "serde-xml-rs" repository = "https://github.com/RReverser/serde-xml-rs" -version = "0.4.0" +version = ...
1
1
1
48d7813b30fd2fa8640d71337125e917907cf02e
William Bartlett
2020-03-11T08:08:20
Version 0.4.0
diff --git a/Cargo.toml b/Cargo.toml index 5363f0c..a76a5bf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ description = "xml-rs based deserializer for Serde (compatible with 0.9+)" license = "MIT" name = "serde-xml-rs" repository = "https://github.com/RReverser/serde-xml-rs" -version = "0.3.1" +version = ...
1
1
1
8f87c0db05288a64b0f5bb838592fc84431a196a
Ben Sully
2020-01-12T12:40:27
Switch from error-chain to thiserror (#120) * Switch from error-chain to thiserror This makes the `Error` enum `Sync` which means it can be used with `anyhow` and async/await. See #118. * Bump version in Cargo.toml This seems to have been missed before somehow since version 0.3.1 is released on crates.io.
diff --git a/Cargo.toml b/Cargo.toml index 2a02853..5363f0c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,20 +4,15 @@ description = "xml-rs based deserializer for Serde (compatible with 0.9+)" license = "MIT" name = "serde-xml-rs" repository = "https://github.com/RReverser/serde-xml-rs" -version = "0.3.0" +version ...
6
203
222
392c9512b143cde3ddb3aaff714df3e4b3b4e53a
Axel Faure
2019-12-15T13:58:55
Parse bool value in attributes (#111) Parse bool value in attributes
diff --git a/src/de/map.rs b/src/de/map.rs index d2c0068..ed1d0bb 100644 --- a/src/de/map.rs +++ b/src/de/map.rs @@ -1,6 +1,6 @@ use std::io::Read; -use serde::de::{self, IntoDeserializer}; +use serde::de::{self, IntoDeserializer, Unexpected}; use xml::attribute::OwnedAttribute; use xml::reader::XmlEvent; @@ -11...
3
33
4
64183ad5b0f91e00c7413cf2e46ac492ce2f7a34
William Bartlett
2019-12-13T14:15:12
Fix #116 (#117)
diff --git a/src/de/mod.rs b/src/de/mod.rs index 64ae439..25e60f8 100644 --- a/src/de/mod.rs +++ b/src/de/mod.rs @@ -197,7 +197,7 @@ impl<'de, 'a, R: Read> de::Deserializer<'de> for &'a mut Deserializer<R> { type Error = Error; forward_to_deserialize_any! { - newtype_struct identifier + identi...
2
22
1
330d54cb3bcd2b23559264b95339ee9ef49a27fc
Igor Gnatenko
2019-04-29T20:24:43
Update error-chain to 0.12 (#100)
diff --git a/Cargo.toml b/Cargo.toml index 2e46de7..2a02853 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ version = "0.3.0" log = "0.4" serde = "1.0" xml-rs = "0.8.0" -error-chain = { version = "0.10.0", default-features = false } +error-chain = { version = "0.12", default-features = false } [dev-dep...
1
1
1
7ce643586528209118f7528ab2d1b85b8bdbd47e
William Bartlett
2019-03-11T15:21:26
Improve bool parsing as XML can support also 0/1 value as bool (#88) Improve bool parsing as XML can support also 0/1 value as bool
diff --git a/src/de/mod.rs b/src/de/mod.rs index 86cd3fb..64ae439 100644 --- a/src/de/mod.rs +++ b/src/de/mod.rs @@ -1,6 +1,6 @@ use std::io::Read; -use serde::de; +use serde::de::{self, Unexpected}; use xml::reader::{EventReader, ParserConfig, XmlEvent}; use xml::name::OwnedName; @@ -228,7 +228,25 @@ impl<'de, ...
2
37
2
2776f4207cf032ce40ce265dfb4df50903fc4993
Evgeniy A. Dushistov
2019-01-17T09:45:01
feature: update dependency: log 0.3.6 -> log 0.4 Dependency from log 0.3.6 cause dependency duplication.
diff --git a/Cargo.toml b/Cargo.toml index aef7f43..60034f9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,10 +7,11 @@ repository = "https://github.com/RReverser/serde-xml-rs" version = "0.3.0" [dependencies] -log = "0.3.6" +log = "0.4" serde = "1.0" xml-rs = "0.8.0" error-chain = "0.10.0" [dev-dependencies] ...
3
32
76
d201b224e11959352bf8a081fcbe6510e5218d96
Ingvar Stepanyan
2019-01-18T16:59:25
Use docmatic for testing samples in README
diff --git a/Cargo.toml b/Cargo.toml index aef7f43..0d31881 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,3 +14,4 @@ error-chain = "0.10.0" [dev-dependencies] serde_derive = "1.0" +docmatic = "0.1.2" diff --git a/tests/readme.rs b/tests/readme.rs new file mode 100644 index 0000000..881d572 --- /dev/null +++ b/tes...
2
7
0
7c2bd569181f8c850989681bb22ce2854307ed08
William Bartlett
2019-01-07T14:20:44
Release version 0.3.0
diff --git a/Cargo.toml b/Cargo.toml index 21f3e85..fab71b5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ description = "xml-rs based deserializer for Serde (compatible with 0.9+)" license = "MIT" name = "serde-xml-rs" repository = "https://github.com/RReverser/serde-xml-rs" -version = "0.2.1" +version = ...
1
1
1
508aa33b90ec1a77b3ef835a8a77b020c38cfc80
Oliver Bøving
2018-08-21T20:42:38
Bump xml-rs version from 0.6 to 0.8
diff --git a/Cargo.toml b/Cargo.toml index 21f3e85..20f88fb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ version = "0.2.1" [dependencies] log = "0.3.6" serde = "1.0" -xml-rs = "0.6.0" +xml-rs = "0.8.0" error-chain = "0.10.0" [dev-dependencies]
1
1
1
7cf7074f783990f7f6a2be9dfc9dd3ea8e666240
Ben Sully
2020-01-12T12:40:27
Switch from error-chain to thiserror (#120) * Switch from error-chain to thiserror This makes the `Error` enum `Sync` which means it can be used with `anyhow` and async/await. See #118. * Bump version in Cargo.toml This seems to have been missed before somehow since version 0.3.1 is released on crates.io...
diff --git a/Cargo.toml b/Cargo.toml index 2a02853..5363f0c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,20 +4,15 @@ description = "xml-rs based deserializer for Serde (compatible with 0.9+)" license = "MIT" name = "serde-xml-rs" repository = "https://github.com/RReverser/serde-xml-rs" -version = "0.3.0" +version ...
6
202
221
4ba35ff0d462758c8ee1e18efa1979dbc61ea7db
William Bartlett
2019-12-13T14:15:12
Fix #116 (#117)
diff --git a/src/de/mod.rs b/src/de/mod.rs index 813dfc6..94b409e 100644 --- a/src/de/mod.rs +++ b/src/de/mod.rs @@ -196,7 +196,7 @@ impl<'de, 'a, R: Read> de::Deserializer<'de> for &'a mut Deserializer<R> { type Error = Error; forward_to_deserialize_any! { - newtype_struct identifier + identi...
2
22
1
e6bf15ae703ff8eb76143d1dcecc445b78e53e07
William Bartlett
2019-03-11T15:21:26
Improve bool parsing as XML can support also 0/1 value as bool (#88) Improve bool parsing as XML can support also 0/1 value as bool
diff --git a/src/de/mod.rs b/src/de/mod.rs index df10520..813dfc6 100644 --- a/src/de/mod.rs +++ b/src/de/mod.rs @@ -1,6 +1,6 @@ use std::io::Read; -use serde::de; +use serde::de::{self, Unexpected}; use xml::reader::{EventReader, ParserConfig, XmlEvent}; use xml::name::OwnedName; @@ -227,7 +227,25 @@ impl<'de, ...
2
37
2
bc4f5e45b8d1dcb392c14f2dfe239ccc77a69fab
Alan Jacobs Richardson
2018-10-28T21:24:40
test whitespace config
diff --git a/tests/round_trip.rs b/tests/round_trip.rs index 91ad32a..54b3b53 100644 --- a/tests/round_trip.rs +++ b/tests/round_trip.rs @@ -1,9 +1,10 @@ #[macro_use] extern crate serde_derive; +extern crate serde; extern crate serde_xml_rs; -use serde_xml_rs::{from_str, to_string}; - +use serde::Deserialize; +use...
1
33
2
1f6aca81582a2552157ac173fc752584a32fc767
Alan Jacobs Richardson
2018-10-26T16:53:28
ignore whitespace events when deserializing With default config, whitespace events never happen, but not handling configs which don't eliminate whitespace is a bug.
diff --git a/src/de/mod.rs b/src/de/mod.rs index df10520..86cd3fb 100644 --- a/src/de/mod.rs +++ b/src/de/mod.rs @@ -103,6 +103,7 @@ impl<'de, R: Read> Deserializer<R> { match self.reader.next().map_err(ErrorKind::Syntax)? { XmlEvent::StartDocument { .. } | XmlEvent::Proce...
1
1
0
119efbb2b37646123546c7360b3676fa018f77e3
farodin91
2017-08-23T08:26:21
Some Refactoring
diff --git a/src/de/map.rs b/src/de/map.rs index 789553f..d2c0068 100644 --- a/src/de/map.rs +++ b/src/de/map.rs @@ -1,10 +1,11 @@ use std::io::Read; + +use serde::de::{self, IntoDeserializer}; use xml::attribute::OwnedAttribute; use xml::reader::XmlEvent; + use Deserializer; use error::{Error, Result}; -use serde...
6
148
160
5b93e6f329adcec03a8d48c22478c3220dfb1017
Jan Jansen
2017-08-22T06:31:22
Prevent infinite loop at the end of the document Fixes #3
diff --git a/src/de/mod.rs b/src/de/mod.rs index 94a8649..daa8c46 100644 --- a/src/de/mod.rs +++ b/src/de/mod.rs @@ -104,10 +104,8 @@ impl<'de, R: Read> Deserializer<R> { loop { match self.reader.next().map_err(ErrorKind::Syntax)? { XmlEvent::StartDocument { .. } | - ...
4
27
5
a151a89196cd409b0b418b439a2a2b9dea3fa9de
Jan Jansen
2017-08-21T12:16:11
Fix small nits and remove old functions
diff --git a/src/de/mod.rs b/src/de/mod.rs index 8bda22f..94a8649 100644 --- a/src/de/mod.rs +++ b/src/de/mod.rs @@ -62,10 +62,6 @@ pub fn from_reader<'de, R: Read, T: Deserialize<'de>>(reader: R) -> Result<T> { T::deserialize(&mut Deserializer::new_from_reader(reader)) } -pub fn deserialize<'de, R: Read, T: De...
3
5
50
08e7c7d7338855152f49e08e199870377f5704f0
Jan Jansen
2017-08-21T12:05:49
Add documentation
diff --git a/src/de/mod.rs b/src/de/mod.rs index 19208e1..8bda22f 100644 --- a/src/de/mod.rs +++ b/src/de/mod.rs @@ -15,17 +15,49 @@ mod map; mod seq; mod var; -pub struct Deserializer<R: Read> { - depth: usize, - reader: EventReader<R>, - peeked: Option<XmlEvent>, - is_map_value: bool, -} - +/// A conv...
3
138
8
f0fe18b9f49211e1c8c6598c7fa2a97f5b97fc3c
Jan Jansen
2017-08-21T11:25:54
Restructure and add rust like conversion to and from Fixes #30
diff --git a/src/map.rs b/src/de/map.rs similarity index 100% rename from src/map.rs rename to src/de/map.rs diff --git a/src/de/mod.rs b/src/de/mod.rs new file mode 100644 index 0000000..19208e1 --- /dev/null +++ b/src/de/mod.rs @@ -0,0 +1,339 @@ +use std::str::FromStr; +use std::convert::From; +use std::io::Read; + +...
11
483
443
ee701643c821dbccc07c015aa48c681b474cb6ea
Jan Jansen
2017-08-18T10:37:07
Support integer/float/bool parsing
diff --git a/src/error.rs b/src/error.rs index da1d672..d91a9d1 100644 --- a/src/error.rs +++ b/src/error.rs @@ -13,17 +13,23 @@ error_chain! { foreign_links { Io(::std::io::Error); ParseIntError(::std::num::ParseIntError); + ParseFloatError(::std::num::ParseFloatError); + ParseBool...
6
110
56
8fd5f63cf8fe6e7659bc11e1467cb472f09e4eae
Jan Jansen
2017-06-21T08:42:05
Convert error handling into error_chain
diff --git a/Cargo.toml b/Cargo.toml index 4ac93c5..21f3e85 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,6 +10,7 @@ version = "0.2.1" log = "0.3.6" serde = "1.0" xml-rs = "0.6.0" +error-chain = "0.10.0" [dev-dependencies] serde_derive = "1.0" diff --git a/src/error.rs b/src/error.rs index 9c73d80..da1d672 100...
8
148
182
733948960eeaa964b6a8988a12d50554dbc8f4b9
Oliver Schneider
2017-08-17T10:28:52
Use `#[ignore]` to place currently failing tests into their own category
diff --git a/src/serialize.rs b/src/serialize.rs index 6563c66..f6e02a9 100644 --- a/src/serialize.rs +++ b/src/serialize.rs @@ -86,7 +86,7 @@ where type SerializeStruct = Struct<'w, W>; type SerializeStructVariant = Impossible<Self::Ok, Self::Error>; - fn serialize_bool(mut self, v: bool) -> Result<Self...
2
15
15
ccf62c0d27a5e3d7a41d1f0c8b9a004adad8d488
Oliver Schneider
2017-08-17T08:15:05
Version bump and get travis passing Signed-off-by: Oliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
diff --git a/Cargo.toml b/Cargo.toml index c88bcfd..d039a57 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ description = "xml-rs based deserializer for Serde (compatible with 0.9+)" license = "MIT" name = "serde-xml-rs" repository = "https://github.com/RReverser/serde-xml-rs" -version = "0.2.0" +version = ...
2
15
2
603ca0889d79c5f2f0208e1352cc248eaf5dd599
Michael Bryan
2017-08-06T11:11:10
Ignored the enum list round trip test
diff --git a/src/serialize.rs b/src/serialize.rs index ec477be..6563c66 100644 --- a/src/serialize.rs +++ b/src/serialize.rs @@ -178,7 +178,7 @@ where fn serialize_newtype_variant<T: ?Sized + Serialize>(self, name: &'static str, variant_index: u32, variant: &'static str, value: &T) -> Result<Self::Ok, S...
2
16
13
3292e22b7447a28685de275ee5558a4d3ffa9fd0
Michael Bryan
2017-08-06T08:39:58
Added a test (ignored for now) for serializing lists
diff --git a/src/serialize.rs b/src/serialize.rs index 4674e8f..ec477be 100644 --- a/src/serialize.rs +++ b/src/serialize.rs @@ -386,6 +386,7 @@ mod tests { #[test] fn test_serialize_enum() { #[derive(Serialize)] + #[allow(dead_code)] enum Node { Boolean(bool), ...
1
19
1
19976a1bfc65b44bb60f77a280acf13944350d59
Michael Bryan
2017-08-06T08:25:11
Updated to serde 1.0 and ran rustfmt on serialize.rs
diff --git a/src/error.rs b/src/error.rs index 1099287..9c73d80 100644 --- a/src/error.rs +++ b/src/error.rs @@ -5,7 +5,6 @@ use std::num::ParseIntError; use std::io; use serde::de::Error as DeError; use serde::ser::Error as SerError; -use serde::de::Visitor; pub enum Error { ParseIntError(ParseIntError), @@...
2
38
64
eb44c2047e3d16b3b06c035f5d17b1858b9c57b1
Michael Bryan
2017-08-06T08:11:50
Added documentation to the generic serialize method
diff --git a/src/serialize.rs b/src/serialize.rs index aebf924..b5510fc 100644 --- a/src/serialize.rs +++ b/src/serialize.rs @@ -4,6 +4,36 @@ use serde::ser::{self, Impossible, Serialize}; use error::Error; +/// A convenience method for serializing some object to a buffer. +/// +/// You'll almost always want to us...
1
30
0
efd993625b114c24cf7334302b839fe5f16b4d8f
Michael-F-Bryan
2017-04-19T21:53:17
Started adding round-trip integration tests
diff --git a/src/lib.rs b/src/lib.rs index b468f40..d92ece5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -17,7 +17,7 @@ mod serialize; pub use error::Error; pub use xml::reader::{EventReader, ParserConfig}; -pub use serialize::Serializer; +pub use serialize::{serialize, Serializer}; use error::VResult; use xml::...
3
123
6
a0bdbd521138d884f8dbde166811b2bea7c68f04
Michael-F-Bryan
2017-04-19T18:58:40
Added implementations for most primitives
diff --git a/src/serialize.rs b/src/serialize.rs index 57a5569..5e42d9c 100644 --- a/src/serialize.rs +++ b/src/serialize.rs @@ -1,4 +1,5 @@ use std::io::Write; +use std::fmt::Display; use serde::ser::{self, Impossible, Serialize}; use error::Error; @@ -16,6 +17,12 @@ impl<W> Serializer<W> pub fn new(writer: ...
1
28
20
90b68787e93c5bfccbc46b44b4ca8ba4838ca4a3
Michael-F-Bryan
2017-04-19T18:49:39
Added a SerializeMap implementation
diff --git a/src/serialize.rs b/src/serialize.rs index a1c8b94..57a5569 100644 --- a/src/serialize.rs +++ b/src/serialize.rs @@ -16,10 +16,6 @@ impl<W> Serializer<W> pub fn new(writer: W) -> Self { Self { writer: writer } } - - fn into_inner(self) -> W { - self.writer - } } @@ -34,8...
1
69
13
e40d10991aebe0581923de999a69413c4059acd9
Michael-F-Bryan
2017-04-19T18:30:37
Added an UnsupportedOperation variant to the Error type
diff --git a/src/error.rs b/src/error.rs index f275a71..1099287 100644 --- a/src/error.rs +++ b/src/error.rs @@ -12,6 +12,7 @@ pub enum Error { Syntax(reader::Error), Custom(String), Io(io::Error), + UnsupportedOperation(String), } pub type VResult<V> = Result<V, Error>; @@ -60,6 +61,7 @@ impl Dis...
2
59
28
38d662cf6b6755bb286ee6e864defd5cad893102
Michael-F-Bryan
2017-04-19T18:17:43
Can now serialize a super basic struct
diff --git a/src/lib.rs b/src/lib.rs index 43db0b8..b468f40 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,6 +4,10 @@ extern crate serde; #[macro_use] extern crate log; +#[cfg(test)] +#[macro_use] +extern crate serde_derive; + #[macro_use] mod error; mod map; @@ -74,7 +78,7 @@ impl<'de, R: Read> Deserializer<R> ...
2
118
36
d0b10c0ca72fe74395e5719bbb3937bb5bee34ac
Michael-F-Bryan
2017-04-19T15:12:36
Added an io::Error variant to the error::Error enum
diff --git a/src/error.rs b/src/error.rs index 1bda7f8..f275a71 100644 --- a/src/error.rs +++ b/src/error.rs @@ -2,6 +2,7 @@ use xml::reader; use std::fmt::{self, Display, Debug}; use std::error::Error as StdError; use std::num::ParseIntError; +use std::io; use serde::de::Error as DeError; use serde::ser::Error as...
2
31
11
009f3ec37dab24f5945e4f4c31294df133687182
Michael-F-Bryan
2017-04-19T15:03:47
Fixed up naming issues for Serializer
diff --git a/src/lib.rs b/src/lib.rs index d630613..43db0b8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -13,7 +13,7 @@ mod serialize; pub use error::Error; pub use xml::reader::{EventReader, ParserConfig}; -pub use serialize::Ser as Serializer; +pub use serialize::Serializer; use error::VResult; use xml::reader...
2
6
6
aa5c7c42d0d056f8f81293ef047934ae4e47bccd
Michael-F-Bryan
2017-04-19T15:00:56
Wrote stub implementations for the Serializer trait
diff --git a/src/error.rs b/src/error.rs index 80bc202..1bda7f8 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,11 +1,13 @@ use xml::reader; use std::fmt::{self, Display, Debug}; use std::error::Error as StdError; -use std::num; -use serde::de::Error as SerdeError; +use std::num::ParseIntError; +use serde::de::Er...
3
189
4
7a3e4d73d3b8608e1fdc8eb8ca6f232df2dade41
duxet
2017-07-02T14:28:13
Update xmls-rs to 0.6.0
diff --git a/Cargo.toml b/Cargo.toml index c88bcfd..33b5cd7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ version = "0.2.0" [dependencies] log = "0.3.6" serde = "1.0" -xml-rs = "0.3.6" +xml-rs = "0.6.0" [dev-dependencies] serde_derive = "1.0" diff --git a/src/lib.rs b/src/lib.rs index 350f985..1c1469d...
2
9
8
f3267b74f4c67a138298ab79e1fd8dbdfee2d620
Ingvar Stepanyan
2017-06-02T17:41:47
Bump version to 0.2.0 for Serde 1.0
diff --git a/Cargo.toml b/Cargo.toml index 5b0ddbb..c88bcfd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ description = "xml-rs based deserializer for Serde (compatible with 0.9+)" license = "MIT" name = "serde-xml-rs" repository = "https://github.com/RReverser/serde-xml-rs" -version = "0.1.2" +version = ...
1
1
1
dc240382e34cbc99ff5fb659996b0381381b37fa
Oliver Hamlet
2017-04-30T22:27:29
Update to Serde 1.0 Only changes necessary to avoid test regressions have been made, though as part of them the futile2 test now passes.
diff --git a/Cargo.toml b/Cargo.toml index ec8739e..5b0ddbb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,8 +8,8 @@ version = "0.1.2" [dependencies] log = "0.3.6" -serde = "0.9.7" +serde = "1.0" xml-rs = "0.3.6" [dev-dependencies] -serde_derive = "0.9.7" +serde_derive = "1.0" diff --git a/src/error.rs b/src/er...
7
128
109
1fc6771f1bd54ce552c9b186c7267a5cc50ec5a3
Ingvar Stepanyan
2017-03-20T10:49:19
Workaround alias generics warning Trick taken from comments in https://github.com/rust-lang/rust/issues/21903
diff --git a/Cargo.toml b/Cargo.toml index d3aef4c..ec8739e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ description = "xml-rs based deserializer for Serde (compatible with 0.9+)" license = "MIT" name = "serde-xml-rs" repository = "https://github.com/RReverser/serde-xml-rs" -version = "0.1.1" +version = ...
2
2
2
840f24e0322bef2bd6c4ccfdc3b74c8fe18a4038
Ingvar Stepanyan
2017-03-12T13:00:28
Add tests migrated from serde-xml
diff --git a/tests/migrated.rs b/tests/migrated.rs new file mode 100644 index 0000000..178844a --- /dev/null +++ b/tests/migrated.rs @@ -0,0 +1,1090 @@ +#[macro_use] +extern crate serde_derive; + +#[macro_use] +extern crate log; + +extern crate serde; +extern crate serde_xml_rs; + +use std::fmt::Debug; + +use serde_xml...
1
1,090
0
fa7d67a5e08c7a242d2443052e102253847facb3
Ingvar Stepanyan
2017-03-10T14:56:27
Bump version
diff --git a/Cargo.toml b/Cargo.toml index e295a28..d3aef4c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,10 +1,10 @@ [package] +authors = ["Ingvar Stepanyan <me@rreverser.com>"] description = "xml-rs based deserializer for Serde (compatible with 0.9+)" license = "MIT" -repository = "https://github.com/RReverser/se...
1
3
3
c87e4478544a0af7a6c4638667d91f814a1cb2a2
Ingvar Stepanyan
2017-03-10T14:56:14
Fix parsing of bool attribute
diff --git a/src/map.rs b/src/map.rs index 6ad5932..9ed528f 100644 --- a/src/map.rs +++ b/src/map.rs @@ -89,7 +89,7 @@ impl de::Deserializer for AttrValueDeserializer { } fn deserialize_bool<V: Visitor>(self, visitor: V) -> VResult<V> { - visitor.visit_bool(self.0.is_empty()) + visitor.visit_b...
2
4
4
f485aa652cecf6fb2ea4b2dad93d08be36a21004
Ingvar Stepanyan
2017-02-17T17:39:55
Add some metadata fields.
diff --git a/Cargo.toml b/Cargo.toml index 45bad26..e295a28 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,4 +1,7 @@ [package] +description = "xml-rs based deserializer for Serde (compatible with 0.9+)" +license = "MIT" +repository = "https://github.com/RReverser/serde-xml-rs" authors = ["Ingvar Stepanyan <me@rrevers...
1
3
0
d8da5fc01f0a2ab0defff92d5436f98458733d1f
Ingvar Stepanyan
2017-02-17T17:01:30
Add helper methods to deserialize from Read
diff --git a/src/lib.rs b/src/lib.rs index 7ecbb0f..d074338 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -13,7 +13,7 @@ pub use xml::reader::{EventReader, ParserConfig}; use error::VResult; use xml::reader::XmlEvent; use xml::name::OwnedName; -use serde::de::{self, Visitor}; +use serde::de::{self, Visitor, Deserializ...
1
15
1
0a9f1ac9ac3bb3012cb759dd77e8edf93cc1d080
Ingvar Stepanyan
2017-02-17T16:08:20
Merge unexpected! into expect!
diff --git a/src/error.rs b/src/error.rs index 095ad90..175fe27 100644 --- a/src/error.rs +++ b/src/error.rs @@ -11,17 +11,11 @@ pub enum Error { pub type VResult<V: Visitor> = Result<V::Value, Error>; -macro_rules! unexpected { - ($actual: expr, $($expected: pat)|+) => { - Err($crate::error::Error::Cust...
1
1
7
6af3097f1ac40c3b5945b0ba55e5becc5ae378b6
Ingvar Stepanyan
2017-02-17T15:59:28
Improve strings and map values - Added debug! on token peeking/fetching - Added start tag name to expect_end_element() to help with debugging - Explicitly deserializing any primitives with deserialize_string - Added helper to deserialize tag contents as map value for non-structs - Added explicit deserializer for ...
diff --git a/Cargo.toml b/Cargo.toml index 1e4662b..3b5b340 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,3 +6,4 @@ version = "0.1.0" [dependencies] serde = "0.9.7" xml-rs = "0.3.6" +log = "0.3.6" diff --git a/src/lib.rs b/src/lib.rs index 987d0ec..7ecbb0f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,6 @@ e...
4
178
54
396e10065345a2978ab63747509ba69bb10f102a
Moritz Borcherding
2026-03-02T18:37:31
make clippy happy
diff --git a/ruzstd/src/decoding/literals_section_decoder.rs b/ruzstd/src/decoding/literals_section_decoder.rs index ef73f15..a42d5a3 100644 --- a/ruzstd/src/decoding/literals_section_decoder.rs +++ b/ruzstd/src/decoding/literals_section_decoder.rs @@ -58,11 +58,10 @@ fn decompress_literals( bytes_read += ...
1
3
4
5cc9e44358f2924a5d7337e365e191c6b09c56d0
Moritz Borcherding
2026-02-28T14:56:21
cargo fmt
diff --git a/ruzstd/src/decoding/mod.rs b/ruzstd/src/decoding/mod.rs index b804175..f3e5323 100644 --- a/ruzstd/src/decoding/mod.rs +++ b/ruzstd/src/decoding/mod.rs @@ -4,9 +4,9 @@ pub mod errors; mod frame_decoder; mod streaming_decoder; +pub use dictionary::Dictionary; pub use frame_decoder::{BlockDecodingStrate...
1
1
1
ae6eb55082f9e01dc115cd4c627329cecd369e37
gstvg
2026-02-27T13:28:43
minor: expose decoding::Dictionary (#97)
diff --git a/ruzstd/src/decoding/mod.rs b/ruzstd/src/decoding/mod.rs index b962619..b804175 100644 --- a/ruzstd/src/decoding/mod.rs +++ b/ruzstd/src/decoding/mod.rs @@ -6,6 +6,7 @@ mod streaming_decoder; pub use frame_decoder::{BlockDecodingStrategy, FrameDecoder}; pub use streaming_decoder::StreamingDecoder; +pub ...
1
1
0
a39b341dc686f36425c9913b42fc58477bc286a2
James Boehme
2026-01-08T14:37:38
fix(style): nightly clippy (#99) * style(sequence decoder): migrate .is_some() -> .unwrap to if let to make clippy happy * feat(cli): replace unix specific code with os generic variant
diff --git a/cli/src/main.rs b/cli/src/main.rs index 6d20429..fb33671 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -4,7 +4,6 @@ use progress::ProgressMonitor; use std::fs::File; use std::io::BufReader; -use std::os::unix::fs::MetadataExt; use std::path::Path; use std::path::PathBuf; @@ -134,7 +133,7 @@...
2
7
8
74a62d997d2bd42777e97da68addf12c0f8a9d2a
Moritz Borcherding
2025-11-02T11:29:31
revert update of Readme Path in lib.rs
diff --git a/ruzstd/src/lib.rs b/ruzstd/src/lib.rs index 0f85407..4a70a0a 100644 --- a/ruzstd/src/lib.rs +++ b/ruzstd/src/lib.rs @@ -10,7 +10,7 @@ //! Compression can be achieved by using the [`encoding::compress`]/[`encoding::compress_to_vec`] //! functions or [`encoding::FrameCompressor`] //! -#![doc = include_str...
1
1
1
3a6d945e656a94bafde80fc2fbb254dd526e9d7e
Moritz Borcherding
2025-11-02T11:16:56
update readme in lib.rs
diff --git a/ruzstd/src/lib.rs b/ruzstd/src/lib.rs index 4a70a0a..0f85407 100644 --- a/ruzstd/src/lib.rs +++ b/ruzstd/src/lib.rs @@ -10,7 +10,7 @@ //! Compression can be achieved by using the [`encoding::compress`]/[`encoding::compress_to_vec`] //! functions or [`encoding::FrameCompressor`] //! -#![doc = include_str...
1
1
1
fcc40ba1bc766ba38eca852cb64550c827d7068d
Moritz Borcherding
2025-11-02T11:15:44
update readme in cargo.toml
diff --git a/ruzstd/Cargo.toml b/ruzstd/Cargo.toml index 53aac8f..ffc7266 100644 --- a/ruzstd/Cargo.toml +++ b/ruzstd/Cargo.toml @@ -8,7 +8,7 @@ homepage = "https://github.com/KillingSpark/zstd-rs" repository = "https://github.com/KillingSpark/zstd-rs" description = "A decoder for the zstd compression format" exclud...
1
1
1
5614f75e5dc1976f31aa76a8a132b1626fe762a6
Moritz Borcherding
2025-11-02T11:09:23
make the MatchGeneratorDriver public so users can name the M in FrameCompressor<R,W,M>
diff --git a/ruzstd/src/encoding/match_generator.rs b/ruzstd/src/encoding/match_generator.rs index d9f4d6c..5d765e6 100644 --- a/ruzstd/src/encoding/match_generator.rs +++ b/ruzstd/src/encoding/match_generator.rs @@ -14,7 +14,7 @@ use super::Sequence; const MIN_MATCH_LEN: usize = 5; -/// Takes care of allocating a...
2
2
1