Skip to content

creates temporary project at user-defined location to be used for testing

License

Apache-2.0 and 2 other licenses found

Licenses found

Apache-2.0
LICENSE
Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

Dylan-DPC-zz/ephemeral

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

EPHEMERAL

Build Status Latest Version

Ephemeral creates a temporary project on your filesystem at any location of your choice so that you can use it while testing anything that works on a rust project - mainly cargo commands/binaries. It can be used to generate projects of other languages too.

INSTALLATION:

To use this crate, add it to the dev-dependencies since it is used only during testing:

[dev-dependencies]
ephemeral = "0.2"

USAGE:

To create a project:

use ephemeral::{Project, Dir};

fn main() {
    let project = Project::new("tmp")
       .add_dir(Dir::new("tmp/foo").add_file("bar", &vec![101u8]))
       .build();

    project.clear();
}

This will create a new project in a dir called tmp which will contain a dir "foo" which will contain a file bar with e (101u8) written to the file.

CONTRIBUTION:

If you want to suggest any new feature or report a bug, you can open an issue here or drop in a pull request directly.

Right now, I still need to tests for most of the functions, so you can test it locally by running:

cargo test --

This package is written using Rust 1.32.0-nightly.

When submitting a Pull request, run cargo fmt on the latest nightly before committing.

LICENSE

Licensed under either of

at your option.

About

creates temporary project at user-defined location to be used for testing

Topics

Resources

License

Apache-2.0 and 2 other licenses found

Licenses found

Apache-2.0
LICENSE
Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages