-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
56 lines (51 loc) · 1.63 KB
/
Cargo.toml
File metadata and controls
56 lines (51 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[package]
name = "knapsack_problem"
version = "0.0.1"
edition = "2021"
description = "Rust code for solving typical dynamic programming programming exercise 'Knapscack problem'"
license = "MIT"
authors = ["Vasile Gorcinschi <[email protected]>"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
clap = { version = "4.5.1", features = ["derive"] }
derive-new = "0.6.0"
proc-macro2 = "1.0.69"
rust_decimal = "1.34"
rust_decimal_macros = "1.34"
serde = { version = "1.0.197", features = ["derive"] }
serde_json = "1.0.114"
[dev-dependencies]
clippy = "0.0.302"
expectest = "0.12.0"
rstest = "0.18.2"
rustfmt = "0.10.0"
[package.metadata.generate-rpm]
release = "1" # RPM package release number
summary = "Knapsack Problem Solver"
license = "MIT"
packager = "Vasile Gorcinschi <[email protected]>"
assets = [
{ source = "target/release/knapsack_problem", dest = "/usr/bin/knapsack_problem", mode = "0755", user = "root", group = "root" },
{ source = "README.md", dest = "/usr/share/doc/knapsack_problem/README.md", mode = "0644", doc = true },
]
[package.metadata.deb]
maintainer = "Vasile Gorcinschi <[email protected]>"
copyright = "2024, Vasile Gorcinschi"
extended-description = """\
Rust code for solving the Knapsack Problem.
A typical dynamic programming exercise."""
depends = "$auto" # Automatically detect dependencies
section = "Utilities"
priority = "optional"
assets = [
[
"target/release/knapsack_problem",
"usr/bin/",
"0755",
], # Executable with permissions
[
"README.md",
"usr/share/doc/knapsack_problem/README.md",
"0644",
], # Documentation
]