Crates.io | rusty-systems |
lib.rs | rusty-systems |
version | 5.0.0 |
source | src |
created_at | 2024-05-18 11:22:44.106188 |
updated_at | 2024-06-30 17:02:53.45778 |
description | A library for procedurally generating content using L-Systems |
homepage | https://theriver.github.io/rusty-systems/ |
repository | https://github.com/TheRiver/rusty-systems/ |
max_upload_size | |
id | 1244249 |
size | 125,465 |
rusty-systems
is a crate for procedurally generating content using L-Systems. It can be installed
from https://crates.io/crates/rusty-systems:
cargo add rusty-systems
This project is still in its early days and might undergo rapid changes. See the crate docs for more information on how to use this library.
Here is a brief (and trivial) example of using the library
use rusty_systems::prelude::*;
let system = System::new();
system.parse_production("CompanyName -> Surname Surname").unwrap();
let starting_axiom = system.parse_prod_string("CompanyName").unwrap();
let result = system.derive(starting_axiom, RunSettings::default()).unwrap().unwrap();
println!("The resulting string is:\n{result}");
The most recent released version of the crate can be installed by adding it to your projects crate.toml
file:
cargo add rusty-systems
You can also install any of the tagged development versions using git:
[dependencies]
rusty-systems = {git = "https://github.com/TheRiver/rusty-systems.git", tag = "2.0.0"}
This code is licensed under the MIT license. See the LICENSE file for more details.