Skip to content
This repository was archived by the owner on Apr 2, 2025. It is now read-only.

Code Error: no method named mode found for struct Permissions in the current scope #40

Open
thearian opened this issue May 2, 2023 · 1 comment · May be fixed by #41
Open

Code Error: no method named mode found for struct Permissions in the current scope #40

thearian opened this issue May 2, 2023 · 1 comment · May be fixed by #41

Comments

@thearian
Copy link

thearian commented May 2, 2023

I was trying to build the source with cargo, but it got to the error below:
image

Almost sure it's a code problem, but here is my setup anyways:
OS: Windows 64Bit (X86_64)
Rust version: 1.65.0
tin-summer v1.21.14

@thearian
Copy link
Author

thearian commented May 2, 2023

Figured out that the problem is that permission mode is only accessible in Unix systems and therefore the rust implementation lacks the integration for windows users.
Screenshot 2023-05-03 013504
I opened a PR for the best integration.
But I hope someone fixes this at Rust level. It's a pity that such safe language cares so less for cross platform builds. A simple warning at compile would do the trick

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

Successfully merging a pull request may close this issue.

1 participant