rust-rrule icon indicating copy to clipboard operation
rust-rrule copied to clipboard

wasm target

Open johndagostino opened this issue 3 years ago • 4 comments

Hi team - great work on the library.

I was wondering if you would consider adding support for wasm as a build target so the library could be consumed in nodejs/web applications.

The rrule.js library you link as inspiration has some limitations around timezones from past experience.

johndagostino avatar Apr 20 '22 23:04 johndagostino

Hey! I don`t see any downsides of adding a wasm build target so if there is a need for it we could definitely add support for it. If you want to add a PR for it I would be happy to merge it.

fmeringdal avatar Apr 21 '22 11:04 fmeringdal

I'd love to see this as well. My use-case would be consuming this in a Typescript code base as a wasm module.

Simply put, the rrule.js library is a bottleneck for us in some cases.

I tried understanding the process of using wasm-bindgen, however I don't really know what I'm doing here.

eschaefer avatar Jun 13 '22 10:06 eschaefer

@dgmachado is working on this as part of some work we're doing for Rspack and NestJS. Would love feedback / questions / comments.

zackarychapple avatar May 15 '23 17:05 zackarychapple

If your goal is to use it on Node.js side, you can use rrule-rust package, which is mostly a wrapper around this crate

lsndr avatar Jun 25 '24 15:06 lsndr