gears

Crates.iogears
lib.rsgears
version0.1.7
sourcesrc
created_at2017-07-16 22:14:05.625479
updated_at2019-03-01 10:27:46.289483
descriptionGears core implementation
homepagehttps://github.com/gears-project/gears-core-rust
repositoryhttps://github.com/gears-project/gears-core-rust.git
max_upload_size
id23668
size397,298
Michiel Kalkman (michiel)

documentation

https://docs.rs/gears

README

gears-core-rust

Cross platform, embeddable library for structured document transformation

Build Status codecov Crates.io Status License Documentation

Specifications

The requirements and specifications are documented using artifact-app .

The generated artifact documents are automatically published from master at https://gears-project.github.io/gears-core-rust/

To generate the documents locally run,

 cargo install artifact-app
 art check
 art ls -p
 art export -o target/spec html

Build

cargo build --release
cargo build --features embedded

DSL

with domain {
    add entity post;
    with entity post {
        add attribute name:string;
        with attribute name {
            set default 'none';
        };
    };
};

with xflows {
    add main_flow;
    with main_flow {
        add node branch_2;
    };
};

Testing

cargo test -- --nocapture

RUST_BACKTRACE=1 cargo test -- --nocapture

RUST_BACKTRACE=1 cargo watch -x "test -- --nocapture"

RUST_BACKTRACE=1 RUST_LOG=gearsg=debug cargo watch -x "test -- --nocapture"

RUST_BACKTRACE=1 RUST_LOG=gearsg=debug cargo watch -x "test --features peg/trace -- --nocapture"

See https://doc.rust-lang.org/log/env_logger/ for more logging options

Commit count: 317

cargo fmt