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

Windows File Locking? #2

Closed
devdevgoat opened this issue Jul 21, 2020 · 2 comments · Fixed by #4
Closed

Windows File Locking? #2

devdevgoat opened this issue Jul 21, 2020 · 2 comments · Fixed by #4

Comments

@devdevgoat
Copy link

When running the example on windows, I'm unable to update the library because it's 'in use by another program.'

Looking at this comment, my guess is windows isn't quite support atm?

@devdevgoat
Copy link
Author

My work around, since I'm Windows 10 was to build and compile in WSL, incase anyone happens on this:

1.Setup WSL and vscode and add the following to your setting file:

{
    "files.watcherExclude": {
        "**/.git/objects/**": true,
        "**/.git/subtree-cache/**": true,
        "**/node_modules/*/**": true,
        "**/target/**": true
    }
}
  1. Install rust
  2. Install linker
  3. Create a working dir and open in vs code
    mkdir rust
    cd rust
    code .
  4. Build tutorial
  5. Add the following to your cargo.toml:
[lib]
crate-type = ["dylib"]

@pragmatrix
Copy link
Contributor

And there is also this fork, which copies the dll before it gets loaded. This seems to work well as far I can tell.

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 a pull request may close this issue.

2 participants