You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fontc uses fontbe which uses fea-rs which has a structure Source which stores feature file paths as OsStrings. fea-rs uses the serde feature to serialize these paths for fontbe to do persistable job orchestration.
However, serde does not implement Serialize and Deserialise for OsStrings on the WASM platform, only Unix and Windows, so the whole thing falls down. We could replace it all with Strings to work everywhere.
Additionally, fontbe/src/feature.rs has the concept of an InMemoryResolver which sounds perfect for things which don't have filesystems! Except that it also stores content_path: OsString, which makes it dependent on filesystems again.
The text was updated successfully, but these errors were encountered:
simoncozens
changed the title
Pervasive of OsString causes problems for wasm
Pervasive use of OsString causes problems for wasm
Jan 24, 2025
fontc uses
fontbe
which usesfea-rs
which has a structureSource
which stores feature file paths asOsString
s.fea-rs
uses theserde
feature to serialize these paths forfontbe
to do persistable job orchestration.However,
serde
does not implementSerialize
andDeserialise
forOsString
s on the WASM platform, only Unix and Windows, so the whole thing falls down. We could replace it all withString
s to work everywhere.Additionally,
fontbe/src/feature.rs
has the concept of anInMemoryResolver
which sounds perfect for things which don't have filesystems! Except that it also storescontent_path: OsString
, which makes it dependent on filesystems again.The text was updated successfully, but these errors were encountered: