-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
61 lines (52 loc) · 1.79 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[workspace.package]
version = "0.1.0"
authors = ["bloomingFlower < [email protected] >"]
description = "A backend for the Axum web framework"
documentation = "https://github.com/bloomingFlower/axum_backend"
[workspace.lints.rust] # Define lint configuration to be inherited by members of a workspace.
# forbid unsafe code in the workspace
unsafe_code = "forbid"
# unused = "allow" # For experimental dev.
[workspace] # Define the workspace
resolver = "2" # specifies edition = "2021" or a newer edition
members = [ # Packages to include in the workspace.
# -- Application Libraries
"crates/libs/lib-utils", # e.g., base64, time.
"crates/libs/lib-rpc", # e.g., rpc routing.
"crates/libs/lib-auth", # e.g., for pwd, token.
"crates/libs/lib-core", # e.g., model, ctx, config.
"crates/libs/lib-producer", # e.g., kafka producer
"crates/libs/lib-consumer", # e.g., kafka consumer
# -- Application Services
"crates/services/web-server",
# "crates/services/web-socket",
"crates/services/sse-service",
# -- Tools
"crates/tools/gen-key",
# -- Test
# "crates/services/scylla-test",
]
[profile.release]
opt-level = 3
# Optimize the speed and size but takes more compile time
lto = "fat"
debug = false
[profile.dev]
opt-level = 0
# Enable incremental compilation
incremental = true
debug = true
#
#[package]
#name = "axum_backend"
#version = "0.1.0"
#edition = "2021"
#rust-version = "1.78.0"
#description = "A backend for the Axum web framework"
#repository = "https://github.com/bloomingFlower/axum_backend"
#
#[profile.release]
## Optimize the speed and size but takes more compile time (https://doc.rust-lang.org/cargo/reference/profiles.html)
#lto = "fat"
#
## See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html