Quellcode durchsuchen

ready for publish

deltanedas vor 3 Jahren
Ursprung
Commit
a0ef58e420
5 geänderte Dateien mit 70 neuen und 1 gelöschten Zeilen
  1. 7 1
      Cargo.toml
  2. 21 0
      LICENSE
  3. 33 0
      README.md
  4. 6 0
      orio-derive/Cargo.toml
  5. 3 0
      orio-derive/README.md

+ 7 - 1
Cargo.toml

@@ -1,11 +1,17 @@
 [package]
 name = "orio"
 version = "0.1.0"
+authors = ["deltanedas"]
 edition = "2021"
+readme = "README.md"
+description = "Small serialization library"
+repository = "https://gitgud.io/deltanedas/orio"
+license = "MIT"
+categories = ["serialization"]
 
 [dependencies]
 byteorder = "1"
-orio-derive = {path = "orio-derive", optional = true}
+orio-derive = {path = "orio-derive", version = "0.1.0", optional = true}
 paste = "1"
 
 [features]

+ 21 - 0
LICENSE

@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2023 deltanedas
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.

+ 33 - 0
README.md

@@ -0,0 +1,33 @@
+# Orio
+
+Lightweight and clean alternative to serde, focusing on writing to and from `Vec<u8>`s.
+
+```rs
+#[derive(Io)]
+struct Thingy {
+	name: String,
+	kind: ThingyKind,
+	#[io(ignore)]
+	debug: String
+}
+
+#[derive(Io)]
+enum ThingyKind {
+	Normal,
+	Special(String)
+}
+
+let thingy = Thingy {
+	name: "thing".to_owned(),
+	kind: ThingyKind::Normal,	
+	debug: "not written".to_owned()
+}
+let mut bytes = vec![];
+thingy.write(&mut bytes);
+```
+
+Named after the cookie :)
+
+# License
+
+[MIT license](/LICENSE)

+ 6 - 0
orio-derive/Cargo.toml

@@ -1,7 +1,13 @@
 [package]
 name = "orio-derive"
 version = "0.1.0"
+authors = ["deltanedas"]
 edition = "2021"
+readme = "README.md"
+description = "Derive macro for orio, a small serialization library"
+repository = "https://gitgud.io/deltanedas/orio"
+license = "MIT"
+categories = ["serialization"]
 
 [dependencies]
 proc-macro2 = "1"

+ 3 - 0
orio-derive/README.md

@@ -0,0 +1,3 @@
+# orio-derive
+
+This is just the derive macro, go up for orio itself.