Skip to content

chore: standardise dependencies#724

Merged
paupino merged 3 commits intomasterfrom
standardise-deps
Mar 14, 2026
Merged

chore: standardise dependencies#724
paupino merged 3 commits intomasterfrom
standardise-deps

Conversation

@Tony-Samuels
Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread Cargo.toml
postgres-types = { default-features = false, optional = true, package = "postgres-types", version = "0.2" }
proptest = { default-features = false, optional = true, features = ["std"], version = "1.0" }
rand-0_9 = { default-features = false, optional = true, package = "rand", version = "0.9" }
rocket = { default-features = false, optional = true, version = "0.5" }
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rocket can't be renamed, as its derive requires the standard crate name.

Note: rocket doesn't seem to have been updated in over a year and despite that (looking at the crate graph), most users are still on rc versions. I think we should consider removing support for it in v2.

Comment thread Cargo.toml Outdated
version-sync = { default-features = false, features = ["html_root_url_updated", "markdown_deps_updated"], version = "0.9" }

# Enable features for testing
rust_decimal = { path = ".", features = ["rand-0_9", "macros", "tokio-pg", "rocket-0_5-traits"] }
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me know if you don't like this, but it saves copying the same versions of everything again. Note that it doesn't work for crates like rand where we use additional features for testing.

Comment thread benches/lib_benches.rs
}

#[cfg(feature = "postgres")]
#[cfg(feature = "db-postgres")]
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no postgres feature. I took a guess at what this was supposed to be, but haven't validated it.

Comment thread Cargo.toml Outdated
rand-0_9 = { default-features = false, optional = true, package = "rand", version = "0.9" }
rocket = { default-features = false, optional = true, version = "0.5" }
rust_decimal_macros = { path = "macros", default-features = false, optional = true, version = "1" }
rkyv = { default-features = false, features = ["size_32", "std"], optional = true, version = "0.7.42" }
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have an example on how to integrate against rkyv 0.8. I don't think our v2 needs to support rkyv 0.7.

Comment thread Cargo.toml
borsh = { default-features = false, features = ["derive", "unstable__schema"], optional = true, version = "1" }
bytes = { default-features = false, optional = true, version = "1" }
diesel = { default-features = false, optional = true, version = "2" }
ndarray-0_16 = { default-features = false, optional = true, package = "ndarray", version = "0.16" }
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Calling out the version bump from 0.15 to 0.16

@Tony-Samuels Tony-Samuels force-pushed the standardise-deps branch 3 times, most recently from db5ee58 to d7662ef Compare April 21, 2025 19:48
@Tony-Samuels Tony-Samuels requested a review from paupino April 21, 2025 20:04
@paupino
Copy link
Copy Markdown
Owner

paupino commented Jun 14, 2025

Sorry for the delay in review - can you resolve the conflicts and I can take a look again?

Tony-Samuels and others added 2 commits July 4, 2025 13:11
# Conflicts:
#	Cargo.toml
#	src/decimal.rs
#	src/rand_0_9.rs
@paupino paupino enabled auto-merge (squash) March 14, 2026 03:25
@paupino paupino merged commit 19fc8d7 into master Mar 14, 2026
15 checks passed
@paupino paupino deleted the standardise-deps branch March 14, 2026 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants