Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: turn into multi-crate repo #10

Merged
merged 1 commit into from
Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 4 additions & 22 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,22 +1,4 @@
[package]
name = "toolshed"
version = "0.2.2"
edition = "2021"

[dependencies]
bs58 = "0.5.0"
alloy-primitives = { version = "0.3.1", features = ["serde"] }
firestorm = { version = "0.5.1", optional = true }
graphql-parser = { version = "0.4.0", optional = true }
serde = { version = "1.0.152", features = ["derive"] }
sha3 = "0.10.6"
url = { version = "2.4.0", optional = true }
serde_with = "3.2.0"

[dev-dependencies]
rand = { version = "0.8.5", features = ["small_rng"] }

[features]
default = ["graphql", "url"]
graphql = ["dep:firestorm", "dep:graphql-parser"]
url = ["dep:url"]
[workspace]
members = [
"toolshed",
]
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# toolshed

This repo contains a collection of Rust modules that are shared between The Graph's network
services. Some may eventually grow to a point where they deserve their own crate.
This repo contains a collection of crates that are shared between The Graph's network
services.

```toml
toolshed = { git = "https://github.com/edgeandnode/toolshed", tag = "v0.2.2" }
```
### Crates

* **toolshed:** A collection of rust modules that are shared between The Graph's network services.

```toml
toolshed = { git = "https://github.com/edgeandnode/toolshed", tag = "v0.2.2" }
```
24 changes: 24 additions & 0 deletions toolshed/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[package]
name = "toolshed"
description = "A collection of Rust modules that are shared between The Graph's network services"
version = "0.2.2"
edition = "2021"


[features]
default = ["graphql", "url"]
graphql = ["dep:firestorm", "dep:graphql-parser"]
url = ["dep:url"]

[dependencies]
bs58 = "0.5.0"
alloy-primitives = { version = "0.3.1", features = ["serde"] }
firestorm = { version = "0.5.1", optional = true }
graphql-parser = { version = "0.4.0", optional = true }
serde = { version = "1.0.152", features = ["derive"] }
sha3 = "0.10.6"
url = { version = "2.4.0", optional = true }
serde_with = "3.2.0"

[dev-dependencies]
rand = { version = "0.8.5", features = ["small_rng"] }
8 changes: 8 additions & 0 deletions toolshed/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# toolshed

This crate contains a collection of Rust modules that are shared between The Graph's network
services. Some may eventually grow to a point where they deserve their own crate.

```toml
toolshed = { git = "https://github.com/edgeandnode/toolshed", tag = "vX.Y.Z" }
```
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.