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

add workflows #1

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open

add workflows #1

wants to merge 16 commits into from

Conversation

DrewMcArthur
Copy link
Owner

No description provided.

Cargo.toml Outdated
Comment on lines 21 to 32
async-trait = "0.1.78"
base64 = "0.22"
bytes = "1.5"
destream = "0.7"
futures = "0.3"
number-general = { version = "0.11", optional = true }
number-general = { version = "0.11.1", optional = true }
pin-project = "1.1"
tokio = { version = "1.35", features = ["io-util"], optional = true }
uuid = "1.6"

[dev-dependencies]
number-general = { version = "0.11", features=["stream"] }
number-general = { version = "0.11.1", features=["stream"] }
Copy link
Owner Author

Choose a reason for hiding this comment

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

updated these versions as an attempt to get this minimal-versions test working, but ended up dropping it since number-general depends on another of your crates that breaks this check:

cargo generate-lockfile -Z minimal-versions
cargo check --locked

src/constants.rs Outdated
Copy link
Owner Author

Choose a reason for hiding this comment

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

these are all a clippy warning, these refs are 'static by default

Comment on lines +582 to 585
} else if (self.buffer.len() >= FALSE.len() && self.buffer.starts_with(FALSE))
|| (self.buffer.len() >= TRUE.len() && self.buffer.starts_with(TRUE))
{
self.decode_bool(visitor).await
Copy link
Owner Author

Choose a reason for hiding this comment

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

should maybe make sure a test covers this, but clippy complained that these two condition blocks were the same, so i combined the conditions

Comment on lines -52 to -59
struct Error;

impl<'en> IntoStream<'en> for Error {
fn into_stream<E: Encoder<'en>>(self, encoder: E) -> Result<E::Ok, E::Error> {
"an error!".into_stream(encoder)
}
}

Copy link
Owner Author

Choose a reason for hiding this comment

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

clippy complained this was unused, is it?

Copy link

Choose a reason for hiding this comment

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

Yes, good catch!

Copy link

@haydnv haydnv left a comment

Choose a reason for hiding this comment

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

Thanks Drew!

Cargo.toml Outdated
@@ -18,18 +18,18 @@ value = ["number-general/stream"]
all = ["tokio-io", "value"]

[dependencies]
async-trait = "0.1"
base64 = "0.21"
async-trait = "0.1.78"
Copy link

Choose a reason for hiding this comment

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

Is there a reason why you need this specific patch version?

Copy link
Owner Author

Choose a reason for hiding this comment

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

see this comment and this comment on the specific action.

since we're not running this action, these changes can be reverted, but technically a project won't compile if it requires, for example, async-trait ==v0.1.0. i think i'll revert these changes for now and we can revisit in a future PR.

Cargo.toml Outdated
bytes = "1.5"
destream = "0.7"
futures = "0.3"
number-general = { version = "0.11", optional = true }
number-general = { version = "0.11.1", optional = true }
Copy link

Choose a reason for hiding this comment

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

Same here

Comment on lines -52 to -59
struct Error;

impl<'en> IntoStream<'en> for Error {
fn into_stream<E: Encoder<'en>>(self, encoder: E) -> Result<E::Ok, E::Error> {
"an error!".into_stream(encoder)
}
}

Copy link

Choose a reason for hiding this comment

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

Yes, good catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants