pub enum BuildSystem {
Rebar3,
ErlangMk,
Unknown,
}Variants§
Implementations§
Source§impl BuildSystem
impl BuildSystem
Sourcepub fn detect(repo_root: &Path) -> Self
pub fn detect(repo_root: &Path) -> Self
Detects which Erlang build tool the repo uses. The heuristic:
rebar.config(orrebar.config.script) present → rebar3erlang.mkpresent, OR a top-levelMakefileincludes it → erlang.mk- otherwise → unknown
rebar3 wins ties because RabbitMQ-style umbrella projects also
ship an erlang.mk, but per-app rebar.config is the more
authoritative declaration for the suite-running command.
Trait Implementations§
Source§impl Clone for BuildSystem
impl Clone for BuildSystem
Source§fn clone(&self) -> BuildSystem
fn clone(&self) -> BuildSystem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BuildSystem
Source§impl Debug for BuildSystem
impl Debug for BuildSystem
Source§impl<'de> Deserialize<'de> for BuildSystem
impl<'de> Deserialize<'de> for BuildSystem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BuildSystem
Source§impl PartialEq for BuildSystem
impl PartialEq for BuildSystem
Source§impl Serialize for BuildSystem
impl Serialize for BuildSystem
impl StructuralPartialEq for BuildSystem
Auto Trait Implementations§
impl Freeze for BuildSystem
impl RefUnwindSafe for BuildSystem
impl Send for BuildSystem
impl Sync for BuildSystem
impl Unpin for BuildSystem
impl UnsafeUnpin for BuildSystem
impl UnwindSafe for BuildSystem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more