diff --git a/Cargo.lock b/Cargo.lock index 0ab2802..b2afd23 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -518,7 +518,7 @@ checksum = "9fc0510504f03c51ada170672ac806f1f105a88aa97a5281117e1ddc3368e51a" [[package]] name = "flake-edit" -version = "0.1.0" +version = "0.0.0" dependencies = [ "anyhow", "clap", diff --git a/Cargo.toml b/Cargo.toml index 0840a59..c424642 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "flake-edit" -version = "0.1.0" +version = "0.0.0" edition = "2021" keywords = ["nix", "flake", "terminal", "cli"] categories = ["command-line-utilities", "libraries"] @@ -8,24 +8,15 @@ categories = ["command-line-utilities", "libraries"] authors = ["Alexander Kenji Berthold"] readme = "README.md" -repository = "https://github.com/a-kenji/flake-add" -documentation = "https://github.com/a-kenji/flake-add" -homepage = "https://github.com/a-kenji/flake-add" +license = "MIT" +repository = "https://github.com/a-kenji/flake-edit" +documentation = "https://github.com/a-kenji/flake-edit" +homepage = "https://github.com/a-kenji/flake-edit" include = ["src/**/*", "LICENSE", "README.md", "build.rs"] [[bin]] name = "flake-edit" -[workspace.package] -version = "0.1.0" -edition = "2021" -authors = ["Alexander Kenji Berthold"] - -readme = "README.md" -repository = "https://github.com/a-kenji/flk" -documentation = "https://github.com/a-kenji/flk" -homepage = "https://github.com/a-kenji/flk" - [workspace] resolver = "2" members = ["."] @@ -77,10 +68,12 @@ roff = { version = "0.2.1", optional = true } [[bench]] name = "benches" +path = "benches/benches.rs" harness = false [[bench]] name = "divan" +path = "benches/divan.rs" harness = false [profile.release] @@ -88,10 +81,6 @@ lto = true codegen-units = 1 opt-level = 'z' strip = true -# opt-level = 3 -# panic = "abort" -# for profiling -# debug = true [profile.dev] incremental = true diff --git a/README.md b/README.md index a047223..bb33d71 100644 --- a/README.md +++ b/README.md @@ -151,5 +151,16 @@ Options: Pin a specific input to it's current revision (rev). +## As a library + +Add `flake-edit` as a library by running: + +``` +cargo add flake-edit --no-default-features +``` + +Be aware that the `lib` interface is still unstable. +Though we are already very happy to get feedback. + ## License MIT