Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,7 @@ jobs:

- name: Run Clippy
run: cargo clippy --workspace --tests --target ${{ matrix.target }}

- name: Check managed feature compiles
if: matrix.target == 'x86_64-unknown-linux-musl'
run: cargo check --features managed --target ${{ matrix.target }}
1 change: 1 addition & 0 deletions src/api/data_types/chunking/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ pub struct AssembleBuildResponse {
pub artifact_url: Option<String>,
}

#[cfg(not(feature = "managed"))]
#[derive(Debug, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct BuildInstallDetails {
Expand Down
4 changes: 3 additions & 1 deletion src/api/data_types/chunking/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ mod hash_algorithm;
mod upload;

pub use self::artifact::{AssembleArtifactsResponse, ChunkedArtifactRequest};
pub use self::build::{AssembleBuildResponse, BuildInstallDetails, ChunkedBuildRequest, VcsInfo};
#[cfg(not(feature = "managed"))]
pub use self::build::BuildInstallDetails;
pub use self::build::{AssembleBuildResponse, ChunkedBuildRequest, VcsInfo};
pub use self::compression::ChunkCompression;
pub use self::dif::{AssembleDifsRequest, AssembleDifsResponse, ChunkedDifRequest};
pub use self::file_state::ChunkedFileState;
Expand Down
3 changes: 3 additions & 0 deletions src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ use std::borrow::Cow;
use std::cell::RefCell;
use std::collections::HashMap;
use std::error::Error as _;
#[cfg(any(target_os = "macos", not(feature = "managed")))]
use std::fs::File;
use std::io::{self, Read as _, Write};
use std::rc::Rc;
Expand Down Expand Up @@ -723,6 +724,7 @@ impl AuthenticatedApi<'_> {
.convert_rnf(ApiErrorKind::ProjectNotFound)
}

#[cfg(not(feature = "managed"))]
pub fn get_build_install_details(
&self,
org: &str,
Expand All @@ -737,6 +739,7 @@ impl AuthenticatedApi<'_> {
self.get(&url)?.convert()
}

#[cfg(not(feature = "managed"))]
pub fn download_installable_build(&self, url: &str, dst: &mut File) -> ApiResult<ApiResponse> {
self.request(Method::Get, url)?
.progress_bar_mode(ProgressBarMode::Response)
Expand Down
2 changes: 2 additions & 0 deletions src/commands/build/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ use clap::{ArgMatches, Command};

use crate::utils::args::ArgExt as _;

#[cfg(not(feature = "managed"))]
pub mod download;
pub mod snapshots;
pub mod upload;

macro_rules! each_subcommand {
($mac:ident) => {
#[cfg(not(feature = "managed"))]
$mac!(download);
$mac!(snapshots);
$mac!(upload);
Expand Down
Loading