-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
home does not compile on wasm #12297
Comments
You're absolute correct. Some related issues about what the return value should be: Could you also share the crate depending on BTW, a semi-related feature requests: triage: @rustbot label -S-triage +S-needs-design +O-wasm |
I encountered this in |
I am pretty into this suggestion, similar to what you've proposed.
I want to expand the proposal to align with things mentioned above — returns /// Returns `None` on unsupported platforms.
///
/// We can figure out the implementation of each platform when needed.
#[cfg(not(any(unix, target_os = "redox", windows)))]
fn home_dir_inner() -> Option<PathBuf> {
None
} Let's do a quick poll. @rfcbot fcp merge |
Team member @weihanglo has proposed to merge this. The next step is review by the rest of the tagged team members: Concerns: Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
@rfcbot concern support What is our overall plan/strategy for Polars is a dataframe library and switch to
As a general As a crate meant for So which is this intended to be and can we document it? |
My take is that We should have tagged @LucioFranco, since they said they would help with maintaining it. That's not a process we have handled too well. |
Adding more context: When we originally moved |
For me, I'm not against general improvements but more so if we clarify the intended "blessed"-ness of this package to Polars, would they move away from it and the request for wasm support would go away? |
Not a blocker but something else for us to keep in mind is that to support wasm means we need to at least verify we build in wasm which means we would need another CI job running. This likely wouldn't "break the bank" on our CI times but we should be mindful of it. |
This is a good point! Now I am more convinced that we shouldn't support any further use case unless the original maintainer or someone stands out and commits to it.
My 2 cents before Lucio puts their words here: `home` is merely for rustup and cargo's use cases. You are suggested to use a
more general package on crates.io for other scenarios. `home` always returns
`None` for unsupported platforms, which might be unexpected. |
Sorry I was taking a break for a while and this issue then escaped me. I think adding support for wasm doesn't make much sense anyways since its not a nix or windows platform. In addition, I don't think any of us have the bandwidth to figure that out at the moment. |
Hey Lucio. Glad you're coming back! And thanks for having a look at this. By not supporting wasm and other platforms, do you prefer always returning a |
@LucioFranco Just checking in again if you think you'll have time to help with this issue or the maintenance of Also note that in rust-lang/rust#71684 there seems to be some interest in providing a new solution in |
@ehuss Hi! I currently don't have time for |
Is this something I could help out with? At this point the home crate has 370 dependents on crates.io and 60k downloads per day on weekdays, so it feels like it is a de facto standard whether the Cargo team likes it or not, and not doing the (presumably limited amount of) maintenance necessary to make this a broadly acceptable solution feels like a waste. |
@djc we talked about this in the cargo team meeting and we are interested in the help. Additionally, we feel more of that time should probably be spent towards an ACP to merge this into the standard library as there is interest in such a thing Independent of helping with |
Yup, I'll see if I can squeeze out an ACP. |
@djc please tag me on it when you do and feel free to pull me in if you want help with any part of it! |
I'm going to cancel the FCP here since I don't think it is likely to move forward. @rfcbot cancel The team would like to see someone open an ACP as mentioned above in #12297 (comment). @joshtriplett (who is also on the libs team) has also indicated they would like to see that route move forward. |
@ehuss proposal cancelled. |
Problem
The
home
crate does not build forwasm32-unknown-unknown
. I encountered this through a transitive dependency from another crate.Steps
results in error:
Possible Solution(s)
Home has no obvious place in wasm, so I suggest adding the following (and I'm happy to add this myself, along with CI test on wasm target)
Notes
No response
Version
No response
The text was updated successfully, but these errors were encountered: