ephemeral 0.2.1

creates temporary project at user-defined location to be used for testing
Documentation
  • Coverage
  • 64.29%
    9 out of 14 items documented1 out of 11 items with examples
  • Size
  • Source code size: 53.66 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 419.65 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Dylan-DPC-zz/ephemeral
    3 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Dylan-DPC

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.