mod.rs 694 B

123456789101112131415161718192021222324252627
  1. // Copyright 2019-2021 Tauri Programme within The Commons Conservancy
  2. // SPDX-License-Identifier: Apache-2.0
  3. // SPDX-License-Identifier: MIT
  4. mod fs;
  5. mod http;
  6. #[cfg(shell_scope)]
  7. mod shell;
  8. pub use self::http::Scope as HttpScope;
  9. pub use fs::Scope as FsScope;
  10. #[cfg(shell_scope)]
  11. pub use shell::{
  12. ExecuteArgs, Scope as ShellScope, ScopeAllowedArg as ShellScopeAllowedArg,
  13. ScopeAllowedCommand as ShellScopeAllowedCommand, ScopeConfig as ShellScopeConfig,
  14. ScopeError as ShellScopeError,
  15. };
  16. pub(crate) struct Scopes {
  17. pub fs: FsScope,
  18. #[cfg(protocol_asset)]
  19. pub asset_protocol: FsScope,
  20. #[cfg(http_request)]
  21. pub http: HttpScope,
  22. #[cfg(shell_scope)]
  23. pub shell: ShellScope,
  24. }