Skip to content

Commit b145c47

Browse files
runningcodeclaude
andcommitted
fix(build): Gate remaining download-only symbols behind managed flag
Gate `get_build_install_details`, `BuildInstallDetails`, and its re-export behind `#[cfg(not(feature = "managed"))]` to fix warnings that become errors with `-Dwarnings` in CI. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 95fa905 commit b145c47

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/api/data_types/chunking/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ pub struct AssembleBuildResponse {
2828
pub artifact_url: Option<String>,
2929
}
3030

31+
#[cfg(not(feature = "managed"))]
3132
#[derive(Debug, Deserialize)]
3233
#[serde(rename_all = "camelCase")]
3334
pub struct BuildInstallDetails {

src/api/data_types/chunking/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ mod hash_algorithm;
1010
mod upload;
1111

1212
pub use self::artifact::{AssembleArtifactsResponse, ChunkedArtifactRequest};
13-
pub use self::build::{AssembleBuildResponse, BuildInstallDetails, ChunkedBuildRequest, VcsInfo};
13+
#[cfg(not(feature = "managed"))]
14+
pub use self::build::BuildInstallDetails;
15+
pub use self::build::{AssembleBuildResponse, ChunkedBuildRequest, VcsInfo};
1416
pub use self::compression::ChunkCompression;
1517
pub use self::dif::{AssembleDifsRequest, AssembleDifsResponse, ChunkedDifRequest};
1618
pub use self::file_state::ChunkedFileState;

src/api/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,7 @@ impl AuthenticatedApi<'_> {
723723
.convert_rnf(ApiErrorKind::ProjectNotFound)
724724
}
725725

726+
#[cfg(not(feature = "managed"))]
726727
pub fn get_build_install_details(
727728
&self,
728729
org: &str,

0 commit comments

Comments
 (0)