Skip to content

Only enable wasmbind feature of chrono on wasm32 target#345

Open
phoebehfharris wants to merge 1 commit intoramosbugs:mainfrom
phoebehfharris:main
Open

Only enable wasmbind feature of chrono on wasm32 target#345
phoebehfharris wants to merge 1 commit intoramosbugs:mainfrom
phoebehfharris:main

Conversation

@phoebehfharris
Copy link
Copy Markdown

I'm currently trying to package clifton, an authentication manager used by my university's supercomputing system, for Fedora. The Fedora package for chrono doesn't enable the wasmbind feature, understandably, since the repos will never build for wasm.

Packaging clifton requires packaging oauth2-rs, as it is preferred Fedora policy to independently package crates rather than vendor them, but oauth2 requiring chrono's wasmbind feature clashes with the Fedora package's flags.

It doesn't seem like there's much reason for enabling wasmbind as a feature when we're not targeting WebAssembly, so I believe we can make this conditional.

What's the pathway for testing WebAssembly code? All unit tests pass for my target (x86_64 Linux), but I'm not sure how to test the unit tests for a WebAssembly target (I can't imagine they'd fail?)

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 this pull request may close these issues.

1 participant