Skip to content

Build fails when rusqlite feature is disabled on non-Unix systems #2049

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

Open
ns-ylambert opened this issue Apr 29, 2025 · 1 comment
Open

Comments

@ns-ylambert
Copy link

Commit 8ea257a introduced a compile-time error on non-Unix systems.

How to reproduce (eg. on Windows):

cargo build -p libsql --no-default-features --features core

Build fails with the following error:

error[E0599]: no method named `to_str` found for type parameter `impl AsRef<Path>` in the current scope
   --> libsql-sys\src\connection.rs:287:18
    |
200 |           path: impl AsRef<Path>,
    |                 ---------------- method `to_str` not found for this type parameter
...
286 |               let path = path
    |  ________________________-
287 | |                 .to_str()
    | |                 -^^^^^^ method not found in `impl AsRef<Path>`
    | |_________________|
    |

For more information about this error, try `rustc --explain E0599`.
error: could not compile `libsql-sys` (lib) due to 1 previous error
@ns-ylambert
Copy link
Author

ns-ylambert commented Apr 29, 2025

This issue is fixed in PR #2048.

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

No branches or pull requests

1 participant