-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
85 lines (71 loc) · 2.37 KB
/
Cargo.toml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
[package]
name = "cargo-rx"
version = "0.3.0"
authors = ["Ritvik Nag <[email protected]>"]
description = "A simple fuzzy finder that allows you to search and run examples from the command line. It comes with the `rx` command."
documentation = "https://docs.rs/cargo-rx"
homepage = "https://github.com/rnag/cargo-rx"
repository = "https://github.com/rnag/cargo-rx"
readme = "README.md"
keywords = ["examples", "run-example", "cargo", "subcommand", "cli"]
categories = [
"development-tools",
"development-tools::cargo-plugins",
]
license = "MIT"
edition = "2021"
# See here for more info: https://blog.rust-lang.org/2020/03/15/docs-rs-opt-into-fewer-targets.html
[package.metadata.docs.rs]
all-features = true
targets = ["x86_64-unknown-linux-gnu"]
[profile.release]
strip = "symbols"
[[bin]]
name = "rx"
path = "src/main.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
# Use cargo-edit (https://github.com/killercup/cargo-edit#installation)
# to manage dependencies.
# Running `cargo add DEPENDENCY_NAME` will
# add the latest version of a dependency to the list,
# and it will keep the alphabetic ordering for you.
[dependencies]
cargo-options = "0.1.3"
cargo_toml = "0.11.5"
clap = { version = "3.1.6", features = ["derive"] }
colored = "2"
home = "0.5.3"
path-absolutize = "3.0.12"
serde = { version = "1.0.136", features = ["derive"] }
shellwords = "1.1.0"
toml = "0.5.8"
# Dependencies for Mac/Linux environments
#
# Note that Windows needs fzf (https://github.com/junegunn/fzf#installation)
# to be installed, and available as an `fzf` binary command.
[target.'cfg(not(target_family="windows"))'.dependencies]
skim = "0.9.4"
[dev-dependencies]
clap = { version = "^3.1", features = ["derive"] }
log = "^0.4"
sensible-env-logger = "^0.2"
# version_sync: to ensure versions in `Cargo.toml` and `README.md` are in sync
version-sync = "^0.9"
### FEATURES #################################################################
[features]
# note: these are only internal, testing features
# they are useful when running examples in this project
__feature-1 = []
__feature-2 = []
[[example]]
name = "logging"
required-features = ["__feature-1", "__feature-2"]
[[example]]
name = "path-1"
path = "examples/custom_path/one.rs"
[[example]]
name = "path-2"
path = "examples/custom_path/two.rs"
[[example]]
name = "hello_world"
path = "./examples/hey_world.rs"