Crates.io | atelier_smithy |
lib.rs | atelier_smithy |
version | 0.2.13 |
source | src |
created_at | 2020-06-22 02:58:44.223147 |
updated_at | 2021-06-25 22:36:42.396514 |
description | Rust native Smithy language format for the AWS Smithy IDL. |
homepage | |
repository | https://github.com/johnstonskj/rust-atelier.git |
max_upload_size | |
id | 256541 |
size | 231,117 |
Provides the ability to read and write Smithy models in its own native language representation.
The crate provides two low-level parsers, parse_model
and parse_selector
that correspond to the
core Model
and Selector
types. These are decouple to allow for the tool use cases where it is
unnecessary or even undesirable to parse all selector expressions as well as those cases where
selector expressions may be useful in non-model scenarios.
This crate also provides implementations of both the core ModelReader
and ModelWriter
traits
for Smithy IDL files.
The following demonstrates the SmithyReader
to parse a file into the in-memory model.
use atelier_core::io::read_model_from_file;
use atelier_smithy::SmithyReader;
use std::path::PathBuf;
let path = PathBufBuf::from("tests/good/waiters.smithy");
let mut reader = SmithyReader::default();
let result = read_model_from_file(&mut reader, path);
assert!(result.is_ok());
The following example parses the simple selector expression "*"
, denoting any shape, into it's
in-memory model.
use atelier_smithy::parse_selector;
let result = parse_selector("*");
assert!(result.is_ok());
Version 0.2.13
Version 0.2.12
Version 0.2.11
Version 0.2.10
Version 0.2.9
Version 0.2.8
Version 0.2.7
Version 0.2.6
Version 0.2.5
br
rule as to ensure members are defined on separate linesVersion 0.2.4
ShapeType
from atelier_core
crate.Version 0.2.3
Version 0.2.2
Version 0.2.1
HasIdentity
and HasTraits
.Version 0.2.0
Version 0.1.5
ModelReader
and ModelWriter
.
representation
methodFILE_EXTENSION
constant.Version 0.1.4
Version 0.1.3
ModelReader
and ModelWriter
.Version 0.1.2
core::syntax
.Version 0.1.1
Version 0.1.0