Files
bytesize/src-tauri/Cargo.toml
T

81 lines
2.8 KiB
TOML

[package]
name = "bytesize"
version = "0.1.0"
description = "Portable Windows screen-to-clip recorder"
authors = ["lashman <lashman@robotbrush.com>"]
edition = "2021"
rust-version = "1.94"
# Lint policy. pedantic is on wholesale; from the restriction group only the
# lints that catch real defects are enabled, since that group is documented as
# cherry-pick-only and its members contradict each other (absolute_paths vs
# unused_qualifications, implicit_return vs semicolon_outside_block).
#
# let_underscore_must_use is deliberately absent: it fires at the `Result<..>`
# return type of #[tauri::command] wrappers, where there is no discarded binding
# to fix, and no amount of restructuring clears it.
[lints.rust]
unreachable_pub = "warn"
unused_qualifications = "warn"
unsafe_op_in_unsafe_fn = "warn"
[lints.clippy]
pedantic = { level = "warn", priority = -1 }
# Correctness-first selection from restriction.
undocumented_unsafe_blocks = "warn"
multiple_unsafe_ops_per_block = "warn"
indexing_slicing = "warn"
unwrap_used = "warn"
expect_used = "warn"
panic = "warn"
unwrap_in_result = "warn"
borrow_as_ptr = "warn"
ptr_as_ptr = "warn"
ref_as_ptr = "warn"
ptr_cast_constness = "warn"
as_pointer_underscore = "warn"
cast_ptr_alignment = "warn"
let_underscore_untyped = "warn"
else_if_without_else = "warn"
exit = "warn"
[lib]
name = "bytesize_lib"
crate-type = ["staticlib", "cdylib", "rlib"]
[build-dependencies]
tauri-build = { version = "2", features = [] }
[dependencies]
tauri = { version = "2.11", features = ["protocol-asset"] }
tauri-plugin-dialog = "2"
tauri-plugin-global-shortcut = "2"
windows-capture = "2.0"
windows = { version = "0.62", features = ["Win32_UI_WindowsAndMessaging", "Win32_UI_Input_KeyboardAndMouse", "Win32_UI_Shell", "Win32_UI_HiDpi", "Win32_Foundation", "Win32_Graphics_Dwm", "Win32_Graphics_Gdi", "Win32_Graphics_Direct3D", "Win32_Graphics_Direct3D11", "Win32_Graphics_Dxgi", "Win32_Graphics_Dxgi_Common", "Win32_System_SystemInformation", "Win32_Media_Audio", "Win32_Media_Multimedia", "Win32_System_Com", "Win32_System_Com_StructuredStorage", "Win32_System_Threading", "Win32_System_Variant", "Win32_Storage_FileSystem"] }
tokio = { version = "1.47", features = ["rt-multi-thread", "macros"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
toml = "0.9"
anyhow = "1.0"
reqwest = { version = "0.13", default-features = false, features = ["native-tls", "stream"] }
futures-util = "0.3"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
tracing-appender = "0.2"
sha2 = "0.10"
hex = "0.4"
sevenz-rust2 = "0.21"
zip = { version = "2", default-features = false, features = ["deflate"] }
[features]
default = ["custom-protocol"]
custom-protocol = ["tauri/custom-protocol"]
[profile.release]
panic = "abort"
codegen-units = 1
lto = true
opt-level = "s"
strip = true