-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
70 additions
and
60 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
include = ["**/*.toml", "**/Cargo.toml", "Cargo.toml"] | ||
[formatting] | ||
align_comments = true | ||
align_entries = true | ||
allowed_blank_lines = 1 | ||
indent_entries = true | ||
indent_tables = true | ||
reorder_arrays = false | ||
reorder_keys = true | ||
trailing_newline = true | ||
align_comments = true | ||
align_entries = true | ||
allowed_blank_lines = 1 | ||
# indent_entries = true | ||
# indent_tables = true | ||
reorder_arrays = false | ||
reorder_keys = true | ||
trailing_newline = true | ||
|
||
[[rule]] | ||
formatting.align_entries = true | ||
formatting.array_auto_expand = false | ||
formatting.reorder_arrays = true | ||
formatting.reorder_keys = true | ||
include = ["Cargo.toml", "**/Cargo.toml"] | ||
keys = [ | ||
"dependencies", | ||
"dev-dependencies", | ||
"build-dependencies", | ||
"workspace.dependencies", | ||
"workspace.dev-dependencies", | ||
"workspace.build-dependencies", | ||
] | ||
formatting.align_entries = true | ||
formatting.array_auto_expand = false | ||
formatting.reorder_arrays = true | ||
formatting.reorder_keys = true | ||
include = ["Cargo.toml", "**/Cargo.toml"] | ||
keys = [ | ||
"dependencies", | ||
"dev-dependencies", | ||
"build-dependencies", | ||
"workspace.dependencies", | ||
"workspace.dev-dependencies", | ||
"workspace.build-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,40 @@ | ||
[package] | ||
authors = ["chance dinkins", "André Sá de Mello <codasm@pm.me>"] | ||
description = "Data structures and logic for resolving, assigning, and deleting by JSON Pointers (RFC 6901)" | ||
documentation = "https://docs.rs/jsonptr" | ||
edition = "2021" | ||
homepage = "https://github.com/chanced/jsonptr" | ||
keywords = ["json-pointer", "rfc-6901", "6901"] | ||
license = "MIT OR Apache-2.0" | ||
name = "jsonptr" | ||
repository = "https://github.com/chanced/jsonptr" | ||
version = "0.4.7" | ||
authors = ["chance dinkins", "André Sá de Mello <codasm@pm.me>"] | ||
description = "Data structures and logic for resolving, assigning, and deleting by JSON Pointers (RFC 6901)" | ||
documentation = "https://docs.rs/jsonptr" | ||
edition = "2021" | ||
homepage = "https://github.com/chanced/jsonptr" | ||
keywords = ["json-pointer", "rfc-6901", "6901"] | ||
license = "MIT OR Apache-2.0" | ||
name = "jsonptr" | ||
repository = "https://github.com/chanced/jsonptr" | ||
version = "0.4.7" | ||
|
||
[dependencies.serde] | ||
default-features = false | ||
features = ["alloc"] | ||
version = "1.0" | ||
default-features = false | ||
features = ["alloc"] | ||
version = "1.0" | ||
|
||
[dependencies.serde_json] | ||
default-features = false | ||
features = ["alloc"] | ||
optional = true | ||
version = "1.0" | ||
default-features = false | ||
features = ["alloc"] | ||
optional = true | ||
version = "1.0" | ||
|
||
[dependencies.toml] | ||
optional = true | ||
version = "0.8" | ||
optional = true | ||
version = "0.8" | ||
|
||
[dev-dependencies] | ||
insta = "1.39.0" | ||
quickcheck = "1.0.3" | ||
quickcheck_macros = "1.0.0" | ||
insta = "1.39.0" | ||
quickcheck = "1.0.3" | ||
quickcheck_macros = "1.0.0" | ||
|
||
[features] | ||
assign = [] | ||
default = ["std", "json"] | ||
delete = [] | ||
json = ["dep:serde_json"] | ||
ops = ["resolve", "assign", "delete"] | ||
resolve = [] | ||
std = ["serde/std", "serde_json?/std"] | ||
assign = [] | ||
default = ["std", "json"] | ||
delete = [] | ||
json = ["dep:serde_json"] | ||
ops = ["resolve", "assign", "delete"] | ||
resolve = [] | ||
std = ["serde/std", "serde_json?/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
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,9 @@ | ||
//! Exposes the traits `Assign`, `Delete`, `Resolve`, `ResolveMut` | ||
pub use crate::{ | ||
assign::Assign, | ||
delete::Delete, | ||
resolve::{Resolve, ResolveMut}, | ||
}; | ||
//! Exposes the traits `Assign`, `Delete`, `Resolve`, `ResolveMut` if enabled. | ||
#[cfg(feature = "assign")] | ||
pub use crate::assign::Assign; | ||
|
||
#[cfg(feature = "resolve")] | ||
pub use resolve::{Resolve, ResolveMut}; | ||
|
||
#[cfg(feature = "delete")] | ||
pub use crate::delete::Delete; |