mirror of
https://github.com/atuinsh/atuin.git
synced 2024-11-25 01:34:13 +01:00
9fa223eaaf
* chore(build): compile protobufs with protox protox is a pure-rust implementation of the protobuf compiler. Therefore, it can be managed by cargo. This removes the implicit dependency on protoc being available in the environment for the build. * fix(build): replace copypasta in build script The paths passed to `compile` aren't actually used by the build. `skip_protoc_run` prevents that. That's why a clean build succeeds even with this mistake. However, the paths are passed to a `cargo:rerun-if-changed` directive. So this mistake would've caused a failed incremental build if the protobuf definitions were changed.
93 lines
2.5 KiB
TOML
93 lines
2.5 KiB
TOML
[workspace]
|
|
members = ["crates/*"]
|
|
|
|
resolver = "2"
|
|
exclude = ["ui/backend"]
|
|
|
|
[workspace.package]
|
|
version = "18.3.0"
|
|
authors = ["Ellie Huxtable <ellie@elliehuxtable.com>"]
|
|
rust-version = "1.77"
|
|
license = "MIT"
|
|
homepage = "https://atuin.sh"
|
|
repository = "https://github.com/atuinsh/atuin"
|
|
readme = "README.md"
|
|
|
|
[workspace.dependencies]
|
|
async-trait = "0.1.58"
|
|
base64 = "0.22"
|
|
log = "0.4"
|
|
time = { version = "0.3.36", features = [
|
|
"serde-human-readable",
|
|
"macros",
|
|
"local-offset",
|
|
] }
|
|
clap = { version = "4.5.4", features = ["derive"] }
|
|
config = { version = "0.13", default-features = false, features = ["toml"] }
|
|
directories = "5.0.1"
|
|
eyre = "0.6"
|
|
fs-err = "2.9"
|
|
interim = { version = "0.1.0", features = ["time"] }
|
|
itertools = "0.12.0"
|
|
rand = { version = "0.8.5", features = ["std"] }
|
|
semver = "1.0.20"
|
|
serde = { version = "1.0.202", features = ["derive"] }
|
|
serde_json = "1.0.116"
|
|
tokio = { version = "1", features = ["full"] }
|
|
uuid = { version = "1.8", features = ["v4", "v7", "serde"] }
|
|
whoami = "1.5.1"
|
|
typed-builder = "0.18.2"
|
|
pretty_assertions = "1.3.0"
|
|
thiserror = "1.0"
|
|
rustix = { version = "0.38.34", features = ["process", "fs"] }
|
|
tower = "0.4"
|
|
tracing = "0.1"
|
|
|
|
[workspace.dependencies.tracing-subscriber]
|
|
version = "0.3"
|
|
features = ["ansi", "fmt", "registry", "env-filter"]
|
|
|
|
[workspace.dependencies.reqwest]
|
|
version = "0.11"
|
|
features = ["json", "rustls-tls-native-roots"]
|
|
default-features = false
|
|
|
|
[workspace.dependencies.sqlx]
|
|
version = "0.7"
|
|
features = ["runtime-tokio-rustls", "time", "postgres", "uuid"]
|
|
|
|
# Config for 'cargo dist'
|
|
[workspace.metadata.dist]
|
|
install-path = "~/.atuin/bin"
|
|
# The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax)
|
|
cargo-dist-version = "0.15.0"
|
|
# CI backends to support
|
|
ci = "github"
|
|
# The installers to generate for each app
|
|
installers = ["shell"]
|
|
# Target platforms to build apps for (Rust target-triple syntax)
|
|
targets = [
|
|
"aarch64-apple-darwin",
|
|
"aarch64-unknown-linux-gnu",
|
|
"aarch64-unknown-linux-musl",
|
|
"x86_64-apple-darwin",
|
|
"x86_64-unknown-linux-gnu",
|
|
"x86_64-unknown-linux-musl",
|
|
]
|
|
# Publish jobs to run in CI
|
|
pr-run-mode = "plan"
|
|
# Whether to install an updater program
|
|
install-updater = true
|
|
# The archive format to use for non-windows builds (defaults .tar.xz)
|
|
unix-archive = ".tar.gz"
|
|
|
|
# The profile that 'cargo dist' will build with
|
|
[profile.dist]
|
|
inherits = "release"
|
|
lto = "thin"
|
|
|
|
[workspace.metadata.dist.github-custom-runners]
|
|
aarch64-apple-darwin = "macos-14"
|
|
aarch64-unknown-linux-gnu = "buildjet-2vcpu-ubuntu-2204-arm"
|
|
aarch64-unknown-linux-musl = "buildjet-2vcpu-ubuntu-2204-arm"
|