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 minimum rust version #34

Merged
merged 1 commit into from
Oct 25, 2023
Merged

Conversation

chipshort
Copy link
Contributor

Hi, are you interested in adding the minimum rust version to Cargo.toml?
That way people with a dependency on the crate (direct or transitive) get an error message that is a bit more helpful.
Currently, if you compile with pre-1.65 Rust, you just get a bunch of errors like this:

no method named cast_mut found for raw pointer *const [u16; N] in the current scope

Only downside is that it has to be kept in sync with the code to be useful.

@isaacholt100
Copy link
Owner

Hi @chipshort, sorry for the slow reply, I've been very busy over the last few weeks. Yes, this is a good idea, I will add this to the next version (v0.9.1). I'll just edit this PR to merge into the v0.9.1 branch first, which I'll then merge into the master branch (because the master branch always contains the code for the latest version).

@isaacholt100 isaacholt100 changed the base branch from master to v0.9.1 October 25, 2023 17:48
@isaacholt100 isaacholt100 merged commit 74400e7 into isaacholt100:v0.9.1 Oct 25, 2023
1 check passed
@isaacholt100
Copy link
Owner

v0.9.1 just published now, thanks again!

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.

None yet

2 participants