-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #127 from firstbatchxyz/erhant/subcrates
Workspaces
- Loading branch information
Showing
42 changed files
with
750 additions
and
420 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,78 +1,44 @@ | ||
[package] | ||
name = "dkn-compute" | ||
version = "0.2.10" | ||
[workspace] | ||
resolver = "2" | ||
members = ["compute", "p2p", "workflows"] | ||
# compute node is the default member, until Oracle comes in | ||
# then, a Launcher will be the default member | ||
default-members = ["compute"] | ||
|
||
[workspace.package] | ||
edition = "2021" | ||
version = "0.2.11" | ||
license = "Apache-2.0" | ||
readme = "README.md" | ||
authors = ["Erhan Tezcan <erhan@firstbatch.xyz>"] | ||
|
||
# profiling build for flamegraphs | ||
[profile.profiling] | ||
inherits = "release" | ||
debug = true | ||
|
||
[features] | ||
# used by flamegraphs & instruments | ||
profiling = [] | ||
|
||
[dependencies] | ||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[workspace.dependencies] | ||
# async stuff | ||
tokio-util = { version = "0.7.10", features = ["rt"] } | ||
tokio = { version = "1", features = ["macros", "rt-multi-thread", "signal"] } | ||
parking_lot = "0.12.2" | ||
async-trait = "0.1.81" | ||
|
||
# serialize & deserialize | ||
serde = { version = "1.0", features = ["derive"] } | ||
serde_json = "1.0" | ||
async-trait = "0.1.81" | ||
|
||
# http client | ||
reqwest = "0.12.5" | ||
|
||
# utilities | ||
# env reading | ||
dotenvy = "0.15.7" | ||
base64 = "0.22.0" | ||
hex = "0.4.3" | ||
hex-literal = "0.4.1" | ||
url = "2.5.0" | ||
urlencoding = "2.1.3" | ||
uuid = { version = "1.8.0", features = ["v4"] } | ||
|
||
# randomization | ||
rand = "0.8.5" | ||
|
||
# logging & errors | ||
env_logger = "0.11.3" | ||
log = "0.4.21" | ||
eyre = "0.6.12" | ||
|
||
# encryption (ecies) & signatures (ecdsa) & hashing & bloom-filters | ||
ecies = { version = "0.2", default-features = false, features = ["pure"] } | ||
libsecp256k1 = "0.7.1" | ||
sha2 = "0.10.8" | ||
sha3 = "0.10.8" | ||
fastbloom-rs = "0.5.9" | ||
|
||
# workflows | ||
ollama-workflows = { git = "https://github.com/andthattoo/ollama-workflows" } | ||
|
||
# peer-to-peer | ||
libp2p = { git = "https://github.com/anilaltuner/rust-libp2p.git", rev = "7ce9f9e", features = [ | ||
# libp2p = { version = "0.54.1", features = [ | ||
"dcutr", | ||
"ping", | ||
"relay", | ||
"autonat", | ||
"identify", | ||
"tokio", | ||
"gossipsub", | ||
"mdns", | ||
"noise", | ||
"macros", | ||
"tcp", | ||
"yamux", | ||
"quic", | ||
"kad", | ||
] } | ||
libp2p-identity = { version = "0.2.9", features = ["secp256k1"] } | ||
tracing = { version = "0.1.40" } | ||
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] } | ||
port_check = "0.2.1" | ||
|
||
# Vendor OpenSSL so that its easier to build cross-platform packages | ||
[dependencies.openssl] | ||
version = "*" | ||
features = ["vendored"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
[package] | ||
name = "dkn-compute" | ||
version.workspace = true | ||
edition.workspace = true | ||
license.workspace = true | ||
readme = "README.md" | ||
authors = ["Erhan Tezcan <erhan@firstbatch.xyz>"] | ||
|
||
[dependencies] | ||
tokio-util = { version = "0.7.10", features = ["rt"] } | ||
tokio = { version = "1", features = ["macros", "rt-multi-thread", "signal"] } | ||
serde = { version = "1.0", features = ["derive"] } | ||
serde_json = "1.0" | ||
async-trait = "0.1.81" | ||
reqwest = "0.12.5" | ||
|
||
# utilities | ||
dotenvy.workspace = true | ||
base64 = "0.22.0" | ||
hex = "0.4.3" | ||
hex-literal = "0.4.1" | ||
url = "2.5.0" | ||
urlencoding = "2.1.3" | ||
uuid = { version = "1.8.0", features = ["v4"] } | ||
|
||
port_check = "0.2.1" | ||
|
||
# logging & errors | ||
rand.workspace = true | ||
env_logger.workspace = true | ||
log.workspace = true | ||
eyre.workspace = true | ||
tracing = { version = "0.1.40" } | ||
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] } | ||
|
||
# encryption (ecies) & signatures (ecdsa) & hashing & bloom-filters | ||
ecies = { version = "0.2", default-features = false, features = ["pure"] } | ||
libsecp256k1 = "0.7.1" | ||
sha2 = "0.10.8" | ||
sha3 = "0.10.8" | ||
fastbloom-rs = "0.5.9" | ||
|
||
# dria subcrates | ||
dkn-p2p = { path = "../p2p" } | ||
dkn-workflows = { path = "../workflows" } | ||
|
||
# Vendor OpenSSL so that its easier to build cross-platform packages | ||
[dependencies.openssl] | ||
version = "*" | ||
features = ["vendored"] |
Oops, something went wrong.