This repository was archived by the owner on Sep 22, 2025. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
165 lines (148 loc) · 4.34 KB
/
Copy pathCargo.toml
File metadata and controls
165 lines (148 loc) · 4.34 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
[dependencies]
graphbit-core = {workspace = true, features = ["python"]}
anyhow.workspace = true
async-trait.workspace = true
chrono.workspace = true
futures.workspace = true
num_cpus.workspace = true
reqwest.workspace = true
serde.workspace = true
serde_json.workspace = true
tempfile.workspace = true
tokio.workspace = true
[dev-dependencies]
pyo3 = {workspace = true, features = ["auto-initialize"]}
async-trait.workspace = true
[features]
default = []
[lints]
workspace = true
# Root package (library crate)
[package]
description = "GraphBit agentic workflow automation framework (library)"
name = "graphbit"
publish = false
authors.workspace = true
categories.workspace = true
documentation.workspace = true
edition.workspace = true
homepage.workspace = true
keywords.workspace = true
repository.workspace = true
rust-version.workspace = true
version.workspace = true
[profile.bench]
debug = false
incremental = false
lto = "fat"
opt-level = 3
# Workspace profiles (applied to all members)
[profile.dev]
debug = true
incremental = true
opt-level = 1
overflow-checks = true
[profile.release]
codegen-units = 1
debug = false
incremental = false
lto = "fat"
opt-level = 3
panic = "abort"
strip = "symbols"
# Profile for PyO3 extension modules (optimized for size and performance)
[profile.release-python]
codegen-units = 1
inherits = "release"
lto = "fat"
opt-level = "s" # Optimize for size (important for Python extensions)
panic = "abort"
strip = "symbols"
[profile.test]
debug = true
incremental = true
opt-level = 1
[target.'cfg(unix)'.dependencies]
jemallocator.workspace = true
[workspace]
members = [
"core",
"python"
]
resolver = "2"
[workspace.dependencies]
# Core dependencies with consistent versions
anyhow = "1.0"
async-trait = "0.1.88"
chrono = {version = "0.4", features = ["serde"]}
# Document processing
docx-rs = "0.4"
futures = "0.3"
# Internal dependencies
graphbit-core = {path = "core"}
# Platform-specific dependencies
jemallocator = "0.5"
# Utilities
lazy_static = "1.4"
lopdf = "0.32"
num_cpus = "1.16"
# Graph and algorithms
petgraph = "0.6"
# Python bindings
pyo3 = {version = "0.24.1", features = ["extension-module"]}
pyo3-async-runtimes = {version = "0.24", features = ["tokio-runtime"]}
rand = "0.8"
regex = "1.10"
reqwest = {version = "0.11", features = ["json"]}
serde = {version = "1.0", features = ["derive"]}
serde_json = "1.0"
sys-info = "0.9"
tempfile = "3.10.0"
# Error handling
thiserror = "1.0"
tokio = {version = "1.38", features = ["full"]}
# Tracing and logging
tracing = "0.1"
tracing-subscriber = {version = "0.3.20", features = ["env-filter", "json"]}
uuid = {version = "1.8", features = ["v4", "v5", "serde"]}
[workspace.lints.clippy]
# Set lint groups with proper priority hierarchy
all = {level = "warn", priority = -1}
cargo = {level = "warn", priority = -1}
# Individual lint overrides (higher priority)
missing_errors_doc = "allow"
missing_panics_doc = "allow"
# Allow some pedantic lints that are too strict for this project
module_name_repetitions = "allow"
nursery = {level = "warn", priority = -1}
pedantic = {level = "warn", priority = -1}
# Workspace-wide lints configuration
[workspace.lints.rust]
dead_code = "warn"
missing_docs = "warn"
unsafe_code = "forbid"
unused_imports = "warn"
unused_variables = "warn"
# Workspace metadata for better tooling support
[workspace.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[workspace.metadata.release]
pre-release-replacements = [
{file = "CHANGELOG.md", search = "Unreleased", replace = "{{version}}"},
{file = "CHANGELOG.md", search = "\\.\\.\\.HEAD", replace = "...{{tag_name}}", exactly = 1},
{file = "CHANGELOG.md", search = "ReleaseDate", replace = "{{date}}"},
{file = "CHANGELOG.md", search = "<!-- next-header -->", replace = "<!-- next-header -->\n\n## [Unreleased] - ReleaseDate\n", exactly = 1},
{file = "CHANGELOG.md", search = "<!-- next-url -->", replace = "<!-- next-url -->\n[Unreleased]: https://github.com/InfinitiBit/graphbit/compare/{{tag_name}}...HEAD", exactly = 1}
]
[workspace.package]
authors = ["GraphBit Team"]
categories = ["development-tools", "api-bindings", "asynchronous"]
documentation = "https://docs.graphbit.ai"
edition = "2021"
homepage = "https://graphbit.ai"
keywords = ["ai", "automation", "workflow", "agent", "llm"]
license-file = "LICENSE"
repository = "https://github.com/InfinitiBit/graphbit"
rust-version = "1.70.0"
version = "0.4.0"