aboutsummaryrefslogtreecommitdiffstats
path: root/Cargo.toml
diff options
context:
space:
mode:
authorConrad Ludgate <conrad.ludgate@truelayer.com>2022-04-22 21:14:23 +0100
committerGitHub <noreply@github.com>2022-04-22 20:14:23 +0000
commit7436e4ff651b64d4019a59d04c30c414ae220403 (patch)
tree3d5e35df1bce075ae04be63d76f9edc8cc17c6cb /Cargo.toml
parentHistory filter (#329) (diff)
downloadatuin-7436e4ff651b64d4019a59d04c30c414ae220403.zip
feature-flags (#328)
* use feature flags * fmt * fix features * update ci * fmt Co-authored-by: Ellie Huxtable <ellie@elliehuxtable.com>
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml19
1 files changed, 11 insertions, 8 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 5eb3d2cb..0b1bda03 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -29,9 +29,17 @@ atuin = { path = "/usr/bin/atuin" }
[workspace]
members = ["./atuin-client", "./atuin-server", "./atuin-common"]
+[features]
+# TODO(conradludgate)
+# Currently, this keeps the same default built behaviour for v0.8
+# We should rethink this by the time we hit a new breaking change
+default = ["sync", "server"]
+sync = ["atuin-client/sync"]
+server = ["atuin-server", "tracing-subscriber"]
+
[dependencies]
-atuin-server = { path = "atuin-server", version = "0.8.1" }
-atuin-client = { path = "atuin-client", version = "0.8.1" }
+atuin-server = { path = "atuin-server", version = "0.8.1", optional = true }
+atuin-client = { path = "atuin-client", version = "0.8.1", default-features = false }
atuin-common = { path = "atuin-common", version = "0.8.1" }
log = "0.4"
@@ -59,7 +67,6 @@ clap_complete = "3.1.2"
fs-err = "2.7"
whoami = "1.1.2"
-
[dependencies.tracing-subscriber]
version = "0.3"
default-features = false
@@ -69,8 +76,4 @@ features = [
"registry",
"env-filter",
]
-
-[profile.release]
-lto = "fat"
-codegen-units = 1
-opt-level = 3
+optional = true