Skip to content

Conversation

@imnotpoz
Copy link
Contributor

@imnotpoz imnotpoz commented May 31, 2025

this PR replaces str::from_utf8(bytes) (rust-lang/rust#131114, still unstable) with core::str::from_utf8(bytes) and OsStr::display(s) (rust-lang/rust#120048, stabilised in 1.87.0) with String::from_utf8_lossy(s.as_bytes()), pushing the msrv down to the earliest that supports the 2024 edition (1.85.0)

there are comments next to each instance with the feature and link to its issue, as well as the old way it was done in case you want to go back to that

@imnotpoz imnotpoz changed the title use core::str::from_utf8 instead of unstable str::from_utf8 lower the msrv of sap May 31, 2025
@imnotpoz imnotpoz marked this pull request as draft May 31, 2025 17:29
@imnotpoz
Copy link
Contributor Author

I'll test various versions and add more changes to make this compatible later on

@imnotpoz imnotpoz changed the title lower the msrv of sap lower the msrv of sap to 1.85.0 May 31, 2025
@imnotpoz imnotpoz marked this pull request as ready for review May 31, 2025 19:36
@imnotpoz
Copy link
Contributor Author

this now compiles with rust 1.85.0

@imnotpoz
Copy link
Contributor Author

also please squash when merging :3

@morr0ne morr0ne merged commit 586b9f1 into tailwags:main Jun 2, 2025
2 checks passed
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