From e8af85979f76ee3101ac9817d60f7259b9e57d37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?joseLu=C3=ADs?= Date: Thu, 14 Nov 2024 17:58:00 +0100 Subject: [PATCH] improve crate description - use the project's tagline. Remove the embedded (unreadable) example. - reorder the features. --- Cargo.toml | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ebe0a0b..5b0415c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,30 +3,19 @@ name = "nanoserde" version = "0.2.0-beta.2" authors = ["makepad ", "Fedor "] license = "MIT OR Apache-2.0" -description = """ -Fork of makepad-tinyserde without any external dependencies. -Supports json, binary and ron. - -```rust -#[derive(Clone, Debug, Default, DeJson, SerJson)] -pub struct Property { - pub name: String, - #[nserde(default)] - pub value: String, - #[nserde(rename = "type")] - pub ty: String, -} -``` -""" +description = """Serialization library with zero dependencies. +Supports Binary, JSON, RON and TOML.""" edition = "2018" repository = "https://github.com/not-fl3/nanoserde" [features] -default = ["json", "binary", "ron", "toml", "std"] -json = ["dep:nanoserde-derive", "nanoserde-derive/json"] +default = ["binary", "json", "ron", "toml", "std"] + binary = ["dep:nanoserde-derive", "nanoserde-derive/binary"] +json = ["dep:nanoserde-derive", "nanoserde-derive/json"] ron = ["dep:nanoserde-derive", "nanoserde-derive/ron"] toml = [] + std = [] [dependencies]