mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-23 23:23:50 +03:00
Moves imports in package
This commit is contained in:
parent
b58ee7233a
commit
0ab32c89e3
@ -1,5 +1,2 @@
|
||||
pub mod imports;
|
||||
pub use self::imports::*;
|
||||
|
||||
pub mod source;
|
||||
pub use self::source::*;
|
||||
|
@ -1,5 +1,2 @@
|
||||
pub mod imports;
|
||||
pub use self::imports::*;
|
||||
|
||||
pub mod source;
|
||||
pub use self::source::*;
|
||||
|
2
package/src/errors/imports/mod.rs
Normal file
2
package/src/errors/imports/mod.rs
Normal file
@ -0,0 +1,2 @@
|
||||
pub mod directory;
|
||||
pub use directory::*;
|
@ -4,6 +4,9 @@ pub use self::directory::*;
|
||||
pub mod files;
|
||||
pub use self::files::*;
|
||||
|
||||
pub mod imports;
|
||||
pub use imports::*;
|
||||
|
||||
pub mod inputs;
|
||||
pub use inputs::*;
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
//! The program package zip file.
|
||||
|
||||
use crate::{
|
||||
directories::IMPORTS_DIRECTORY_NAME,
|
||||
errors::ZipFileError,
|
||||
imports::IMPORTS_DIRECTORY_NAME,
|
||||
inputs::{INPUT_DIRECTORY_NAME, INPUT_FILE_EXTENSION},
|
||||
outputs::{
|
||||
CHECKSUM_FILE_EXTENSION,
|
||||
|
2
package/src/imports/mod.rs
Normal file
2
package/src/imports/mod.rs
Normal file
@ -0,0 +1,2 @@
|
||||
pub mod directory;
|
||||
pub use directory::*;
|
@ -1,10 +1,8 @@
|
||||
use crate::errors::InputDirectoryError;
|
||||
use crate::{errors::InputDirectoryError, inputs::INPUT_FILE_EXTENSION};
|
||||
|
||||
use std::{fs, path::PathBuf};
|
||||
|
||||
pub static INPUT_DIRECTORY_NAME: &str = "input/";
|
||||
|
||||
static INPUT_FILE_EXTENSION: &str = "leo.in";
|
||||
pub static INPUT_DIRECTORY_NAME: &str = "inputs/";
|
||||
|
||||
pub struct InputDirectory;
|
||||
|
||||
|
@ -6,5 +6,6 @@ pub use errors::*;
|
||||
|
||||
pub mod directories;
|
||||
pub mod files;
|
||||
pub mod imports;
|
||||
pub mod inputs;
|
||||
pub mod outputs;
|
||||
|
@ -2,7 +2,7 @@ use crate::errors::OutputDirectoryError;
|
||||
|
||||
use std::{fs, path::PathBuf};
|
||||
|
||||
pub static OUTPUT_DIRECTORY_NAME: &str = "output/";
|
||||
pub static OUTPUT_DIRECTORY_NAME: &str = "outputs/";
|
||||
|
||||
pub struct OutputDirectory;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user