-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
42 lines (39 loc) · 2.38 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
[package]
name = "dirs-cli"
version = "0.1.0"
authors = ["Simon Ochsenreither <[email protected]>"]
description = "A tiny low-level command line application that provides platform-specific standard locations of directories for config, cache and other data on Linux, Windows, macOS and Redox by leveraging the mechanisms defined by the XDG base/user directory specifications on Linux, the Known Folder API on Windows, and the Standard Directory guidelines on macOS."
readme = "README.md"
license = "MPL-2.0"
repository = "https://github.com/soc/dirs-cli-rs"
maintenance = { status = "actively-developed" }
keywords = ["xdg", "basedir", "app_dirs", "path", "folder"]
[dependencies]
dirs = "5.0.1"
[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.48.0", features = [
"Win32_Foundation",
"Win32_System_Com",
"Win32_System_Console",
"Win32_System_IO",
"Win32_Storage_FileSystem",
] }
# Linux x64 Windows x64 Windows x86
[profile.dev] # 4200KiB 5400KiB
[profile.release] # 3600KiB
lto = true # 1600KiB
codegen-units = 1 # 1600KiB
#panic = "abort" # 1530KiB
# cargo +nightly build -Z build-std=std,panic_abort --target x86_64-unknown-linux-gnu --release
# 296KiB
# cargo +nightly build -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort --target x86_64-unknown-linux-gnu --release
# 58KiB
# cargo +nightly build -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort --target x86_64-pc-windows-gnu --release
# cargo +nightly build -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort --target i686-pc-windows-gnu --release
# #![no_main] -> no core::fmt
# 37KiB
strip = true # 30KiB 78KiB 37KiB
# upx --best --lzma target/x86_64-unknown-linux-gnu/release/dirs-cli
# upx --best --lzma target/x86_64-pc-windows-gnu/release/dirs-cli.exe
# upx --best --lzma target/i686-pc-windows-gnu/release/dirs-cli.exe
# 16KiB 28KiB 17KiB