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

Remove dependency on unmaintained fs2 #505

Closed
wants to merge 1 commit into from

Conversation

coolreader18
Copy link
Contributor

fs2 hasn't made a release in 3 years, and it looks like we only need it for file locking, which is pretty easy to do ourselves. Plus, this fixes compilation on Redox (danburkert/fs2-rs#38)

@coolreader18
Copy link
Contributor Author

Before:

rustyline on  master is 📦 v8.0.0 via 🦀 v1.50.0 
 redoxer check
    Checking fs2 v0.4.3
error[E0425]: cannot find function `allocate` in module `sys`
   --> /home/coolreader18/.cargo/registry/src/gh.neting.cc-1ecc6299db9ec823/fs2-0.4.3/src/lib.rs:104:14
    |
104 |         sys::allocate(self, len)
    |              ^^^^^^^^ not found in `sys`

error: aborting due to previous error

Now:

rustyline on  no-fs2 is 📦 v8.0.0 via 🦀 v1.50.0 
 redoxer check
    Checking rustyline v8.0.0 (/home/coolreader18/rustyline)
    Finished dev [unoptimized + debuginfo] target(s) in 0.38s

@gwenn
Copy link
Collaborator

gwenn commented Mar 23, 2021

Thanks.

@gwenn
Copy link
Collaborator

gwenn commented Mar 28, 2021

@coolreader18 It seems that fs3, a fork of fs2 has the same issue.

@gwenn
Copy link
Collaborator

gwenn commented Mar 28, 2021

@coolreader18 Would you mind giving fd-lock a try ? See #507

@gwenn
Copy link
Collaborator

gwenn commented Mar 29, 2021

I let you close this PR.

@gwenn
Copy link
Collaborator

gwenn commented May 18, 2021

Version 8.1.0 released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants