Crates.io | atelier_assembler |
lib.rs | atelier_assembler |
version | 0.1.4 |
source | src |
created_at | 2021-04-30 23:21:52.547974 |
updated_at | 2021-07-12 23:27:47.262822 |
description | Implements the Smithy model assembler pattern, to merge files into a single in-memory Model. |
homepage | |
repository | https://github.com/johnstonskj/rust-atelier.git |
max_upload_size | |
id | 391735 |
size | 30,516 |
This crate provides the model assembly capability, to merge files into a single in-memory Model
.
A tool can add files one-by-one, or from a directory, and then process them all into a single model. This implementation understands the different registered file extensions so that it can read files in different representations and assemble them seamlessly.
The following is the simple, and most common, method of using the assembler. This uses the
default FileTypeRegistry
and will search for all models in the set of paths specified in
the environment variable "SMITHY_PATH
".
use atelier_assembler::ModelAssembler;
use atelier_core::error::Result;
use atelier_core::model::Model;
use std::convert::TryFrom;
let env_assembler = ModelAssembler::default();
let model: Result<Model> = Model::try_from(env_assembler);
For more information, see the Rust Atelier book.
Version 0.1.4
Version 0.1.3
Version 0.1.2
Version 0.1.1
Version 0.1.0