Skip to content

Add wasm support #26

Open
Open
@dtbuchholz

Description

@dtbuchholz

It'd be nice if you if you could use this library when compiling to wasm. E.g., in raf.rs, it starts off with these imports:

#[cfg(windows)]
use std::io::{Seek, SeekFrom};
#[cfg(unix)]
use std::os::unix::fs::FileExt;
#[cfg(windows)]
use std::os::windows::fs::FileExt;
use std::{fs::File, io, io::Write, path::Path, sync::Arc};

This is problematic since a wasm build will try to use the #[cfg(windows)] flag and cause errors downstream.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions