-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
b0643bc
commit 78eb7a3
Showing
10 changed files
with
566 additions
and
211 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
pub type JsonValue = serde_json::Value; | ||
pub type JsonMap = serde_json::Map<String, JsonValue>; | ||
pub type JsonSchema = JsonValue; | ||
|
||
macro_rules! json_map { | ||
( | ||
{ | ||
$($toks: tt)* | ||
} | ||
) => { | ||
{ | ||
let o = serde_json::json!({ $($toks)* }); | ||
match o { | ||
serde_json::Value::Object(o) => o, | ||
_ => unreachable!() | ||
} | ||
} | ||
}; | ||
} | ||
pub(crate) use json_map; | ||
pub(crate) use serde_json::json; |
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,8 +1,6 @@ | ||
//! This crate provides all tools to work with the Comlink tools. | ||
|
||
pub mod comlink_parser; | ||
pub mod json; | ||
pub mod json_schema_validator; | ||
pub mod typescript_parser; | ||
|
||
pub type JsonValue = serde_json::Value; | ||
pub type JsonSchema = JsonValue; |
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
Oops, something went wrong.