How to integrate a new filesystem

26 views
Skip to first unread message

Tim Co

unread,
Dec 31, 2020, 12:06:39 PM12/31/20
to emscripten-discuss

I work on a decentralisation project which has its own filesystem implemented in Rust with options to mount on a device using FUSE or access in a customised browser from JavaScript, plus language bindings for building applications in other languages.

I want to be able to access this filesystem in the browser from a library (wasm-git) which is compiled using Emscripten.

So my question is what are the ways I could approach this, both as a quick solution mainly for development and longer term as a decent quality solution?

Also, are there any other community chats, forum etc for Emscripten?

Thanks.
__
P.S. FYI the decentralisation project is https://safenetwork.tech and my current project is a decentralised alternative to github with no-servers and no-third parties at https://github.com/happybeing/p2p-git-portal-poc.

Sam Clegg

unread,
Jan 6, 2021, 7:34:24 AM1/6/21
to emscripte...@googlegroups.com
Emscripten doesn't support FUSE but it does support custom filesystems.   Once possible solution is to write a new emscripten filesystem (see src/library_workerfs.js for an example) and have that call back into your compiled module (the rust code).  If you really wanted to be adventurous you could try to post FUSE to emscripten so that any FUSE filesystem could be mounted, but that would be a fairly big project I think.

We have a public discord server.  All the community communication channels are listed at https://emscripten.org/docs/introducing_emscripten/community.html.

cheers,
sam

--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/7b9fa549-1d82-4516-9583-e1f31c4eb937n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages