docs(rust): Update README

This commit is contained in:
Dmitry Dygalo 2021-02-04 11:47:04 +01:00
parent c496fa2d23
commit cd89158444
No known key found for this signature in database
GPG Key ID: E2FDD4885D799724
1 changed files with 3 additions and 2 deletions

View File

@ -61,7 +61,8 @@ use serde_json::json;
fn main() -> Result<(), CompilationError> {
let schema = json!({"maxLength": 5});
let instance = json!("foo");
// Draft is detected automatically with fallback to Draft7
// Draft is detected automatically
// with fallback to Draft7
let compiled = JSONSchema::compile(&schema)?;
assert!(compiled.is_valid(&instance));
Ok(())
@ -70,7 +71,7 @@ fn main() -> Result<(), CompilationError> {
## Bindings
- Python - See the `/python` directory
- Python - See the `./bindings/python` directory
- Ruby - a [crate](https://github.com/driv3r/rusty_json_schema) by @driv3r
## Performance