Skip to content

When migrate from v1 to v2, manually add field [lib] to cargo.toml failed the cargo check, how to fix it? #11450

Answered by FabianLars
Hellager asked this question in Q&A
Discussion options

You must be logged in to vote

You also need to split up the old main.rs file into lib.rs and main.rs for this. (Explained at the top of your link just below the [lib] field)
I'd also recommend to create a new create-tauri-app project for comparison if the docs aren't good enough.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Hellager
Comment options

Answer selected by Hellager
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants