This PR did some cleanups and extracts sp's key features as a simple library. Applications using the library interface can avoid forking and use native Rust streams (impl Read) instead of non-portable RawFds. An example was added to demostrate how it works.
This PR did some cleanups and extracts sp's key features as a simple library. Applications using the library interface can avoid forking and use native Rust streams (
impl Read
) instead of non-portableRawFd
s. An example was added to demostrate how it works.