lib.rs 537 B

123456789101112131415161718
  1. // SPDX-License-Identifier: AGPL-3.0-or-later
  2. //! This crate contains the definition of the protocol used to access the filesystem, as well as
  3. //! its client and server implementations.
  4. #![feature(impl_trait_in_assoc_type)]
  5. /// The type for inodes in used in the filesystem.
  6. pub type Inode = btlib::Inode;
  7. /// The type for open file handles used in the filesystem.
  8. pub type Handle = u64;
  9. pub mod msg;
  10. #[cfg(feature = "client")]
  11. pub mod client;
  12. #[cfg(feature = "local-fs")]
  13. pub mod local_fs;
  14. #[cfg(feature = "server")]
  15. pub mod server;