Skip to content

Commit

Permalink
Merge pull request #87 from a-kenji/improve/metadata
Browse files Browse the repository at this point in the history
Improve cargo metadata
  • Loading branch information
a-kenji authored Jul 25, 2024
2 parents b45c661 + 9df62c2 commit 2691dd7
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 7 additions & 18 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,31 +1,22 @@
[package]
name = "flake-edit"
version = "0.1.0"
version = "0.0.0"
edition = "2021"
keywords = ["nix", "flake", "terminal", "cli"]
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 = ["."]
Expand Down Expand Up @@ -77,21 +68,19 @@ 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]
lto = true
codegen-units = 1
opt-level = 'z'
strip = true
# opt-level = 3
# panic = "abort"
# for profiling
# debug = true

[profile.dev]
incremental = true
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2691dd7

Please sign in to comment.