cargo_lambda_metadata/
lib.rs

1pub mod cargo;
2pub mod config;
3pub mod env;
4pub mod error;
5pub mod fs;
6pub mod lambda;
7
8/// Name for the function when no name is provided.
9/// This will make the watch command to compile
10/// the binary without the `--bin` option, and will
11/// assume that the package only has one function,
12/// which is the main binary for that package.
13pub const DEFAULT_PACKAGE_FUNCTION: &str = "_";
14
15#[cfg(test)]
16mod tests {
17    use std::path::PathBuf;
18
19    pub fn fixture_metadata(name: &str) -> PathBuf {
20        format!("../../tests/fixtures/{name}/Cargo.toml").into()
21    }
22}