Skip to content

Commit b6fd159

Browse files
committed
Add cargo generate-rpm configuration
Signed-off-by: George Holderness <[email protected]>
1 parent 7257283 commit b6fd159

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Status: Available for use
1515

1616
### Added
1717
- Set minimum Rust version to 1.80
18+
- Add configuration for [`cargo generate-rpm`](https://crates.io/crates/cargo-generate-rpm), allowing an RPM for floki to be built using Cargo against the project
1819

1920
### Fixed
2021

Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ shell-words = "1.1.0"
3636
[dev-dependencies]
3737
tempfile = "3.19.1"
3838

39+
[package.metadata.generate-rpm]
40+
assets = [
41+
{ source = "target/release/floki", dest = "/usr/bin/floki", mode = "0755" },
42+
{ source = "LICENSE", dest = "/usr/share/doc/floki/LICENSE", doc = true, mode = "0644" },
43+
]
44+
require-sh = false
45+
3946
[profile.release]
4047
strip = true # Automatically strip symbols from the binary.
4148
opt-level = "z" # Optimize for size.

0 commit comments

Comments
 (0)