Skip to content

Commit 70e0ac7

Browse files
committed
Initial commit
Works pretty well :)
0 parents  commit 70e0ac7

8 files changed

+1034
-0
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/target
2+
3+
# Mac
4+
.DS_Store

Cargo.lock

+352
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[package]
2+
name = "cargo-out"
3+
version = "0.1.0"
4+
authors = ["Techcable <Techcable@techcable.net>"]
5+
license = "MIT OR Apache-2.0"
6+
description = "A cargo subcommand to get the $OUT_DIR environment variable from build scripts."
7+
repository = "https://github.com/Techcable/cargo-out"
8+
keywords = ["cargo", "subcommand", "out-dir", "cli", "cargo-out", "cargo-out-dir", "OUT_DIR"]
9+
categories = ["development-tools::cargo-plugins", "development-tools::build-utils", "command-line-utilities"]
10+
edition = "2021"
11+
readme = "README.md"
12+
13+
[dependencies]
14+
clap = { version = "3.0", features = ["derive"] }
15+
# Utilities
16+
clap-cargo = { version = "0.8", features = ["cargo_metadata"] }
17+
# Parsing cargo metadata
18+
cargo_metadata = "0.14"
19+
20+
# indexmap (we want output to preserve order in our output maps)
21+
indexmap = { version = "1", features = ["serde"] }
22+
# Errors
23+
anyhow = "1"
24+
# Used to give similarity suggestions (did you mean <other crate>?)
25+
strsim = "0.10"
26+
27+
# Serialize
28+
serde = { version = "1", features = ["derive"] }
29+
serde_json = "1"
30+
31+
[profile.release]
32+
# thin: 1.4M, 10.78s
33+
# regular: 1.5M, 10.10s
34+
# fat: 1.3M, 16.46s
35+
#
36+
# thin seems to provide the best tradeoff here :)
37+
lto = "thin"
38+
39+

0 commit comments

Comments
 (0)