-
Notifications
You must be signed in to change notification settings - Fork 161
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
Use cargo's workspace.package and workspace.dependencies #595
Merged
Merged
Changes from 3 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
177605f
chore: Use cargo's workspace.package feature
flub b907274
Move iroh and anyhow dependencies to workspace
flub dc77d1e
move all dependencies to workspace cargo.toml
flub 62d1545
Merge branch 'main' into flub/workspace-package
flub d585330
Always set features in the crates and not the workspace
flub c765297
move iroh-embed to workspace deps
flub fe41974
Move importer example to workspace deps
flub bb07fec
Move embed example workspace deps
flub 61fb39e
Use right version of axum
flub File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
[package] | ||
name = "iroh-api" | ||
version = "0.1.3" | ||
edition = "2021" | ||
license = "Apache-2.0/MIT" | ||
readme = "README.md" | ||
description = "Rust API for Iroh" | ||
rust-version = "1.65" | ||
repository = "https://github.com/n0-computer/iroh" | ||
version.workspace = true | ||
edition.workspace = true | ||
license.workspace = true | ||
rust-version.workspace = true | ||
repository.workspace = true | ||
|
||
[features] | ||
testing = ["dep:mockall"] | ||
|
||
[dependencies] | ||
anyhow = { version = "1", features = ["backtrace"] } | ||
async-stream = "0.3.3" | ||
bytes = "1.1.0" | ||
cid = "0.9" | ||
config = "0.13.1" | ||
futures = "0.3.21" | ||
iroh-metrics = { version = "0.1.3", path = "../iroh-metrics", default-features = false } | ||
iroh-resolver = { version = "0.1.3", path = "../iroh-resolver" } | ||
iroh-rpc-client = { version = "0.1.3", path = "../iroh-rpc-client", default-features = false } | ||
iroh-rpc-types = { version = "0.1.3", path = "../iroh-rpc-types", default-features = false } | ||
iroh-unixfs = { version = "0.1.3", path = "../iroh-unixfs" } | ||
iroh-util = { version = "0.1.3", path = "../iroh-util" } | ||
libp2p = "0.50" | ||
mockall = { version = "0.11.2", optional = true } | ||
relative-path = "1.7.2" | ||
serde = { version = "1.0", features = ["derive"] } | ||
thiserror = "1.0" | ||
tokio = { version = "1" } | ||
tracing = "0.1.34" | ||
anyhow.workspace = true | ||
async-stream.workspace = true | ||
bytes.workspace = true | ||
cid.workspace = true | ||
config.workspace = true | ||
futures.workspace = true | ||
iroh-metrics.workspace = true | ||
iroh-resolver.workspace = true | ||
iroh-rpc-client.workspace = true | ||
iroh-rpc-types.workspace = true | ||
iroh-unixfs.workspace = true | ||
iroh-util.workspace = true | ||
libp2p.workspace = true | ||
mockall = { workspace = true, optional = true } | ||
relative-path.workspace = true | ||
serde = { workspace = true, features = ["derive"] } | ||
thiserror.workspace = true | ||
tokio.workspace = true | ||
tracing.workspace = true | ||
|
||
[dev-dependencies] | ||
tempfile = "3.3.0" | ||
tempfile.workspace = true |
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 |
---|---|---|
@@ -1,24 +1,24 @@ | ||
[package] | ||
name = "iroh-car" | ||
version = "0.1.3" | ||
edition = "2021" | ||
authors = ["dignifiedquire <me@dignifiedquire.com>"] | ||
license = "Apache-2.0/MIT" | ||
repository = "https://github.com/n0-computer/iroh" | ||
description = "Implementation the car files for iroh" | ||
rust-version = "1.65" | ||
version.workspace = true | ||
edition.workspace = true | ||
license.workspace = true | ||
repository.workspace = true | ||
rust-version.workspace = true | ||
|
||
[dependencies] | ||
cid = "0.9" | ||
futures = "0.3.21" | ||
integer-encoding = { version = "3.0", features = ["tokio_async"] } | ||
ipld = { package = "libipld", version = "0.15"} | ||
cid.workspace = true | ||
futures.workspace = true | ||
integer-encoding.workspace = true | ||
ipld = { package = "libipld", version = "0.15" } | ||
ipld-cbor = { package = "libipld-cbor", version = "0.15" } | ||
thiserror = "1.0" | ||
tokio = { version = "1", features = ["io-util"] } | ||
thiserror.workspace = true | ||
tokio = { workspace = true, features = ["io-util"] } | ||
|
||
[dev-dependencies] | ||
multihash = "0.17" | ||
tokio = { version = "1", features = ["macros", "sync", "rt", "fs", "io-util"] } | ||
multihash.workspace = true | ||
tokio = { workspace = true, features = ["macros", "sync", "rt", "fs", "io-util"] } | ||
|
||
[features] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i realise this example still needs cleaning up. i'll do this once there's approval in principle. this might also race the iroh-embed pr - so one of them will need fixing up anyway. and examples are touched by that pr