pub struct CSharpPackage { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Debug for CSharpPackage
impl Debug for CSharpPackage
Source§impl Package for CSharpPackage
impl Package for CSharpPackage
Source§fn dry_run_publish<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 Config,
) -> Pin<Box<dyn Future<Output = Result<Option<PublishOutput>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn dry_run_publish<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 Config,
) -> Pin<Box<dyn Future<Output = Result<Option<PublishOutput>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Managed dry-run for C#/.NET packages.
Honors config.publishDryRun overrides first (existing shell-string
behavior, matching every other language). When no override is set,
runs dotnet pack + dotnet nuget push against ephemeral
tempfile::TempDir directories that are cleaned up via RAII — even
on error, panic, or future cancellation.
fn name(&self) -> Option<&str>
fn version(&self) -> Option<&str>
fn path(&self) -> &Path
fn relative_path(&self) -> &Path
Source§fn update_version<'life0, 'async_trait>(
&'life0 mut self,
update_type: UpdateType,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_version<'life0, 'async_trait>(
&'life0 mut self,
update_type: UpdateType,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Errors Read more
fn language(&self) -> Language
fn is_changed(&self) -> bool
fn set_changed(&mut self, changed: bool)
Source§fn set_name(&mut self, name: String)
fn set_name(&mut self, name: String)
Set the package name (used for fallback when name is not found in manifest)
Source§fn default_publish_command(&self) -> String
fn default_publish_command(&self) -> String
Get the default publish command for this package type
Source§fn default_dry_run_publish_command(&self) -> Option<String>
fn default_dry_run_publish_command(&self) -> Option<String>
Get the default dry-run publish command for this package type. Read more
fn dependencies(&self) -> &HashSet<String>
fn add_dependency(&mut self, dependency: &str)
Source§fn inherits_workspace_version(&self) -> bool
fn inherits_workspace_version(&self) -> bool
Whether this package inherits its version from the workspace root via
version.workspace = trueSource§fn workspace_root_path(&self) -> Option<&Path>
fn workspace_root_path(&self) -> Option<&Path>
Path to the workspace root Cargo.toml, if this package inherits its version from workspace
Source§fn publish<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 Config,
) -> Pin<Box<dyn Future<Output = Result<PublishOutput, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn publish<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 Config,
) -> Pin<Box<dyn Future<Output = Result<PublishOutput, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Publish the package using the configured command or default Read more
Source§fn get_publish_command(&self, config: &Config) -> String
fn get_publish_command(&self, config: &Config) -> String
Get the publish command for this package, checking config first
Auto Trait Implementations§
impl Freeze for CSharpPackage
impl RefUnwindSafe for CSharpPackage
impl Send for CSharpPackage
impl Sync for CSharpPackage
impl Unpin for CSharpPackage
impl UnsafeUnpin for CSharpPackage
impl UnwindSafe for CSharpPackage
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