Skip to content

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

@ns-ylambert

Description

@ns-ylambert

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions