Closed expede closed 2 years ago
Port of https://github.com/fission-suite/webnative/issues/301
Make the internals run on an immutable core
Linking
This is done! :)
All operations are defined on Rc<PublicDirectory> (i.e. owned reference counted smart pointers on immutable data) and the data itself doesn't contain any RefCells:
Rc<PublicDirectory>
RefCell
https://github.com/WebNativeFileSystem/rs-wnfs/blob/4170b8e86058a02ca3a8a713b53b842d2b08afc5/crates/fs/public/directory.rs#L41-L46
https://github.com/WebNativeFileSystem/rs-wnfs/blob/4170b8e86058a02ca3a8a713b53b842d2b08afc5/crates/fs/public/link.rs#L14-L18
https://github.com/WebNativeFileSystem/rs-wnfs/blob/4170b8e86058a02ca3a8a713b53b842d2b08afc5/crates/fs/public/node.rs#L17-L21
Port of https://github.com/fission-suite/webnative/issues/301
Make the internals run on an immutable core
Linking