ara_source

Crates.ioara_source
lib.rsara_source
version0.2.0
sourcesrc
created_at2022-12-28 12:35:41.691749
updated_at2023-01-01 13:06:04.884258
descriptionA Source library for Ara Programming Language 🗃
homepagehttps://github.com/ara-lang/source
repositoryhttps://github.com/ara-lang/source
max_upload_size
id746814
size27,497
Saif Eddin Gmati (azjezz)

documentation

https://docs.rs/ara_source

README

Ara Source

Actions Status Crates.io Docs

A Source library for Ara Programming Language 🗃

Usage

Add ara_source to your Cargo.toml, and you're good to go!

[dependencies]
ara_source = "0.2.0"

Example

use ara_source::loader;

fn main() {
    let root = format!(
        "{}/examples/fixture/",
        std::env::var("CARGO_MANIFEST_DIR").unwrap()
    );

    let result = loader::load_directories(root, vec!["src", "vendor/foo", "vendor/bar"])?;

    println!("{:#?}", map);
}

see examples directory for more examples.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Credits

Commit count: 7

cargo fmt