@@ -107,7 +107,7 @@ fn should_use_ctru_debuginfo(cargo_cmd: &Command, verbose: bool) -> bool {
107107///
108108/// For "build" commands (which compile code, such as `cargo 3ds build` or `cargo 3ds clippy`),
109109/// if there is no pre-built std detected in the sysroot, `build-std` will be used instead.
110- pub fn make_cargo_command ( input : & Input , message_format : & Option < String > ) -> Command {
110+ pub ( crate ) fn make_cargo_command ( input : & Input , message_format : & Option < String > ) -> Command {
111111 let devkitpro =
112112 env:: var ( "DEVKITPRO" ) . expect ( "DEVKITPRO is not defined as an environment variable" ) ;
113113 // TODO: should we actually prepend the user's RUSTFLAGS for linking order? not sure
@@ -195,7 +195,7 @@ fn print_command(command: &Command) {
195195}
196196
197197/// Finds the sysroot path of the current toolchain
198- pub fn find_sysroot ( ) -> PathBuf {
198+ pub ( crate ) fn find_sysroot ( ) -> PathBuf {
199199 let sysroot = env:: var ( "SYSROOT" ) . ok ( ) . unwrap_or_else ( || {
200200 let rustc = env:: var ( "RUSTC" ) . unwrap_or_else ( |_| "rustc" . to_string ( ) ) ;
201201
@@ -253,7 +253,7 @@ pub fn check_rust_version(input: &Input) {
253253/// Parses messages returned by "build" cargo commands (such as `cargo 3ds build` or `cargo 3ds run`).
254254/// The returned [`CTRConfig`] is then used for further building in and execution
255255/// in [`CTRConfig::build_smdh`], [`build_3dsx`], and [`link`].
256- pub fn get_artifact_config ( package : Package , artifact : Artifact ) -> CTRConfig {
256+ pub ( crate ) fn get_artifact_config ( package : Package , artifact : Artifact ) -> CTRConfig {
257257 // For now, assume a single "kind" per artifact. It seems to be the case
258258 // when a single executable is built anyway but maybe not in all cases.
259259 let name = match artifact. target . kind [ 0 ] . as_ref ( ) {
@@ -287,7 +287,7 @@ pub fn get_artifact_config(package: Package, artifact: Artifact) -> CTRConfig {
287287
288288/// Builds the 3dsx using `3dsxtool`.
289289/// This will fail if `3dsxtool` is not within the running directory or in a directory found in $PATH
290- pub fn build_3dsx ( config : & CTRConfig , verbose : bool ) {
290+ pub ( crate ) fn build_3dsx ( config : & CTRConfig , verbose : bool ) {
291291 let mut command = Command :: new ( "3dsxtool" ) ;
292292 command
293293 . arg ( & config. target_path )
@@ -323,7 +323,7 @@ pub fn build_3dsx(config: &CTRConfig, verbose: bool) {
323323
324324/// Link the generated 3dsx to a 3ds to execute and test using `3dslink`.
325325/// This will fail if `3dslink` is not within the running directory or in a directory found in $PATH
326- pub fn link ( config : & CTRConfig , run_args : & Run , verbose : bool ) {
326+ pub ( crate ) fn link ( config : & CTRConfig , run_args : & Run , verbose : bool ) {
327327 let mut command = Command :: new ( "3dslink" ) ;
328328 command
329329 . arg ( config. path_3dsx ( ) )
@@ -380,17 +380,17 @@ pub struct CTRConfig {
380380
381381impl CTRConfig {
382382 /// Get the path to the output `.3dsx` file.
383- pub fn path_3dsx ( & self ) -> Utf8PathBuf {
383+ pub ( crate ) fn path_3dsx ( & self ) -> Utf8PathBuf {
384384 self . target_path . with_extension ( "3dsx" )
385385 }
386386
387387 /// Get the path to the output `.smdh` file.
388- pub fn path_smdh ( & self ) -> Utf8PathBuf {
388+ pub ( crate ) fn path_smdh ( & self ) -> Utf8PathBuf {
389389 self . target_path . with_extension ( "smdh" )
390390 }
391391
392392 /// Get the absolute path to the romfs directory, defaulting to `romfs` if not specified.
393- pub fn romfs_dir ( & self ) -> Utf8PathBuf {
393+ pub ( crate ) fn romfs_dir ( & self ) -> Utf8PathBuf {
394394 self . manifest_dir
395395 . join ( self . romfs_dir . as_deref ( ) . unwrap_or ( Utf8Path :: new ( "romfs" ) ) )
396396 }
@@ -401,7 +401,7 @@ impl CTRConfig {
401401
402402 /// Builds the smdh using `smdhtool`.
403403 /// This will fail if `smdhtool` is not within the running directory or in a directory found in $PATH
404- pub fn build_smdh ( & self , verbose : bool ) {
404+ pub ( crate ) fn build_smdh ( & self , verbose : bool ) {
405405 let description = self
406406 . description
407407 . as_deref ( )
0 commit comments