From f6ce7df30310607b1d6bcd5a16730238af9458f5 Mon Sep 17 00:00:00 2001 From: Martin Toman <25009432+tinybeachthor@users.noreply.github.com> Date: Sat, 19 Oct 2024 19:46:57 -0500 Subject: [PATCH] cargo new serde-redes --- Cargo.lock | 4 ++++ Cargo.toml | 3 ++- README.md | 4 ++++ flake.nix | 4 +++- serde-ast/Cargo.toml | 2 +- serde-redes/Cargo.toml | 9 +++++++++ serde-redes/src/lib.rs | 2 ++ 7 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 serde-redes/Cargo.toml create mode 100644 serde-redes/src/lib.rs diff --git a/Cargo.lock b/Cargo.lock index 604d08f..6f78e15 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -163,6 +163,10 @@ dependencies = [ "thiserror", ] +[[package]] +name = "serde-redes" +version = "0.1.0-alpha.1" + [[package]] name = "serde_derive" version = "1.0.210" diff --git a/Cargo.toml b/Cargo.toml index ad7818d..af40055 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,11 +1,12 @@ [workspace] -members = ["serde-ast"] +members = ["serde-ast", "serde-redes"] resolver = "2" [workspace.metadata.crane] name = "serde-redes-workspace" [workspace.package] +edition = "2021" version = "0.0.0" license = "MIT OR Apache-2.0" repository = "https://github.com/tinybeachthor/serde-redes" diff --git a/README.md b/README.md index 98cb48f..7da1274 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,10 @@ The ultimate goal is to allow ergonomically extending `serde`: - allow easily extending the existing serializers with extra features - add support for comments in `serde` output +## [serde-redes](./serde-redes/) + + + ## [serde-ast](./serde-ast/) [![Crates.io Version](https://img.shields.io/crates/v/serde-ast)](https://crates.io/crates/serde-ast) diff --git a/flake.nix b/flake.nix index c1e8517..80c4a8d 100644 --- a/flake.nix +++ b/flake.nix @@ -33,7 +33,7 @@ commonArgs = { inherit src; strictDeps = true; - doCheck = false; # do not run tests during build + doCheck = false; # do not run tests during build, use nextest check instead }; cargoArtifacts = craneLib.buildDepsOnly (commonArgs // { pname = "serde-redes-deps-only"; @@ -49,11 +49,13 @@ in { packages = { serde-ast = craneLib.buildPackage (individualCrateArgs ./serde-ast); + serde-redes = craneLib.buildPackage (individualCrateArgs ./serde-redes); default = pkgs.symlinkJoin { name = "serde-redes-all"; paths = with self.packages.${system}; [ serde-ast + serde-redes ]; }; }; diff --git a/serde-ast/Cargo.toml b/serde-ast/Cargo.toml index 9b62527..1657a31 100644 --- a/serde-ast/Cargo.toml +++ b/serde-ast/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "serde-ast" version = "0.1.0-alpha.1" -edition = "2021" +edition = { workspace = true } description = "An AST representation for serde serialization" readme = "README.md" categories = ["encoding"] diff --git a/serde-redes/Cargo.toml b/serde-redes/Cargo.toml new file mode 100644 index 0000000..d159e7d --- /dev/null +++ b/serde-redes/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "serde-redes" +version = "0.1.0-alpha.1" +edition = { workspace = true } +license = { workspace = true } +repository = { workspace = true } +homepage = { workspace = true } + +[dependencies] diff --git a/serde-redes/src/lib.rs b/serde-redes/src/lib.rs new file mode 100644 index 0000000..3247b3e --- /dev/null +++ b/serde-redes/src/lib.rs @@ -0,0 +1,2 @@ +pub trait Serialize { +}