-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
put macros and traits of each type behind individual feature flags
- Loading branch information
Showing
14 changed files
with
146 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "nanoserde" | ||
version = "0.1.37" | ||
version = "0.2.0" | ||
authors = ["makepad <[email protected]>", "Fedor <[email protected]>"] | ||
license = "MIT OR Apache-2.0" | ||
description = """ | ||
|
@@ -22,9 +22,13 @@ edition = "2018" | |
repository = "https://github.com/not-fl3/nanoserde" | ||
|
||
[features] | ||
default = [] | ||
default = ["json", "binary", "ron", "toml"] | ||
json = ["dep:nanoserde-derive", "nanoserde-derive/json"] | ||
binary = ["dep:nanoserde-derive", "nanoserde-derive/binary"] | ||
ron = ["dep:nanoserde-derive", "nanoserde-derive/ron"] | ||
toml = [] | ||
no_std = ["dep:hashbrown"] | ||
|
||
[dependencies] | ||
hashbrown = { version = "0.12.3", optional = true } | ||
nanoserde-derive = { path = "derive", version = "=0.1.22" } | ||
nanoserde-derive = { path = "derive", version = "=0.2.0", optional = true } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "nanoserde-derive" | ||
version = "0.1.22" | ||
version = "0.2.0" | ||
authors = ["Makepad <[email protected]>", "Fedor <[email protected]>"] | ||
edition = "2018" | ||
description = "Fork of makepad-tinyserde derive without any external dependencies" | ||
|
@@ -11,6 +11,9 @@ proc-macro = true | |
|
||
[features] | ||
default = [] | ||
json = [] | ||
binary = [] | ||
ron = [] | ||
no_std = ["dep:hashbrown"] | ||
|
||
[dependencies] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#![cfg(feature = "json")] | ||
use nanoserde::{DeJson, SerJson}; | ||
|
||
use std::{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#![cfg(feature = "ron")] | ||
use nanoserde::{DeRon, SerRon}; | ||
|
||
use std::{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#![cfg(feature = "toml")] | ||
|
||
#[cfg(feature = "no_std")] | ||
use hashbrown::HashMap; | ||
#[cfg(not(feature = "no_std"))] | ||
|