diff --git a/src/api/mod.rs b/src/api/mod.rs index 5222b12f98..d297702934 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -466,6 +466,7 @@ impl<'a> AuthenticatedApi<'a> { /// Lists release files for the given `release`, filtered by a set of checksums. /// When empty checksums list is provided, fetches all possible artifacts. + #[deprecated] pub fn list_release_files_by_checksum( &self, org: &str, @@ -525,6 +526,7 @@ impl<'a> AuthenticatedApi<'a> { } /// Lists all the release files for the given `release`. + #[deprecated] pub fn list_release_files( &self, org: &str, @@ -535,6 +537,7 @@ impl<'a> AuthenticatedApi<'a> { } /// Get a single release file and store it inside provided descriptor. + #[deprecated] pub fn get_release_file( &self, org: &str, @@ -569,6 +572,7 @@ impl<'a> AuthenticatedApi<'a> { } /// Get a single release file metadata. + #[deprecated] pub fn get_release_file_metadata( &self, org: &str, @@ -603,6 +607,7 @@ impl<'a> AuthenticatedApi<'a> { /// Deletes a single release file. Returns `true` if the file was /// deleted or `false` otherwise. + #[deprecated] pub fn delete_release_file( &self, org: &str, @@ -637,6 +642,7 @@ impl<'a> AuthenticatedApi<'a> { /// Deletes all release files. Returns `true` if files were /// deleted or `false` otherwise. + #[deprecated] pub fn delete_release_files( &self, org: &str, @@ -1423,6 +1429,7 @@ impl RegionSpecificApi<'_> { /// Uploads a new release file. The file is loaded directly from the file /// system and uploaded as `name`. + #[deprecated] pub fn upload_release_file( &self, context: &UploadContext, diff --git a/src/commands/files/delete.rs b/src/commands/files/delete.rs index 68ed9ba1e2..ebdca8f094 100644 --- a/src/commands/files/delete.rs +++ b/src/commands/files/delete.rs @@ -27,6 +27,7 @@ pub fn make_command(command: Command) -> Command { ) } +#[deprecated] pub fn execute(matches: &ArgMatches) -> Result<()> { let config = Config::current(); let release = config.get_release_with_legacy_fallback(matches)?; diff --git a/src/commands/files/list.rs b/src/commands/files/list.rs index 696c6cdf80..d1d7cd1ff0 100644 --- a/src/commands/files/list.rs +++ b/src/commands/files/list.rs @@ -11,6 +11,7 @@ pub fn make_command(command: Command) -> Command { .arg(Arg::new("version").long("version").hide(true)) } +#[deprecated] pub fn execute(matches: &ArgMatches) -> Result<()> { let config = Config::current(); let release = config.get_release_with_legacy_fallback(matches)?; diff --git a/src/commands/files/upload.rs b/src/commands/files/upload.rs index c43729bb60..14b6682f6b 100644 --- a/src/commands/files/upload.rs +++ b/src/commands/files/upload.rs @@ -123,6 +123,7 @@ pub fn make_command(command: Command) -> Command { ) } +#[deprecated] pub fn execute(matches: &ArgMatches) -> Result<()> { let config = Config::current(); let release = config.get_release_with_legacy_fallback(matches)?; diff --git a/src/commands/sourcemaps/explain.rs b/src/commands/sourcemaps/explain.rs index aeeebb6b48..df56e01935 100644 --- a/src/commands/sourcemaps/explain.rs +++ b/src/commands/sourcemaps/explain.rs @@ -123,6 +123,7 @@ fn extract_nth_frame(stacktrace: &Stacktrace, position: usize) -> Result<&Frame> Ok(frame) } +#[deprecated] fn fetch_release_artifacts(org: &str, project: &str, release: &str) -> Result> { Api::current().authenticated()?.list_release_files(org, Some(project), release).map(|artifacts| { if artifacts.is_empty() { @@ -181,6 +182,7 @@ fn verify_dists_matches(artifact: &Artifact, dist: Option<&str>) -> Result<()> { Ok(()) } +#[deprecated] fn fetch_release_artifact_file( org: &str, project: &str, @@ -215,6 +217,7 @@ fn fetch_release_artifact_file( })? } +#[deprecated] fn fetch_release_artifact_file_metadata( org: &str, project: &str, @@ -368,6 +371,7 @@ fn unify_artifact_url(abs_path: &str) -> Result { Ok(filename) } +#[deprecated] pub fn execute(matches: &ArgMatches) -> Result<()> { let config = Config::current(); warning("DEPRECATION: `sourcemaps explain` has drifted from how sourcemap processing actually operates \ diff --git a/src/utils/file_upload.rs b/src/utils/file_upload.rs index ae5f01715b..5794fc63a3 100644 --- a/src/utils/file_upload.rs +++ b/src/utils/file_upload.rs @@ -223,6 +223,7 @@ impl<'a> FileUpload<'a> { } } +#[deprecated] fn upload_files_parallel( context: &UploadContext, files: &SourceFiles, diff --git a/src/utils/sourcemaps.rs b/src/utils/sourcemaps.rs index 7b478d517b..d4a5b0996a 100644 --- a/src/utils/sourcemaps.rs +++ b/src/utils/sourcemaps.rs @@ -766,6 +766,7 @@ impl SourceMapProcessor { /// Flags the collected sources whether they have already been uploaded before /// (based on their checksum), and returns the number of files that *do* need an upload. + #[deprecated] fn flag_uploaded_sources(&mut self, context: &UploadContext<'_>) -> usize { let mut files_needing_upload = self.sources.len();