diff options
| author | Igor Tolmachev <me@igorek.dev> | 2024-06-15 03:30:50 +0900 |
|---|---|---|
| committer | Igor Tolmachev <me@igorek.dev> | 2024-06-23 15:34:34 +0900 |
| commit | f8c3c93824645a807d28b760855b4676ea479720 (patch) | |
| tree | 1f91838c2abcb3b0683a061f892b8e2835be4fa1 /src/structs | |
| parent | bd77f62e99a5300dfa52aef3a7040414b28ebfd6 (diff) | |
| download | archivator-f8c3c93824645a807d28b760855b4676ea479720.tar.gz archivator-f8c3c93824645a807d28b760855b4676ea479720.zip | |
Add simple zip reader
Diffstat (limited to 'src/structs')
| -rw-r--r-- | src/structs/de.rs | 0 | ||||
| -rw-r--r-- | src/structs/mod.rs | 2 | ||||
| -rw-r--r-- | src/structs/ser.rs | 6 |
3 files changed, 8 insertions, 0 deletions
diff --git a/src/structs/de.rs b/src/structs/de.rs new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/structs/de.rs | |||
diff --git a/src/structs/mod.rs b/src/structs/mod.rs new file mode 100644 index 0000000..d7e9daa --- /dev/null +++ b/src/structs/mod.rs | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | mod de; | ||
| 2 | mod ser; | ||
diff --git a/src/structs/ser.rs b/src/structs/ser.rs new file mode 100644 index 0000000..a3fe291 --- /dev/null +++ b/src/structs/ser.rs | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | use crate::ArchiveError; | ||
| 2 | use serde::{ser, Serialize}; | ||
| 3 | |||
| 4 | pub struct ArchiveSerializer { | ||
| 5 | bin: Vec<u8>, | ||
| 6 | } | ||
