automatic cargo CI changes

This commit is contained in:
PlexSheep 2024-02-24 23:03:06 +00:00 committed by github-actions[bot]
parent 7d4a3986a9
commit 23c51ac1da
8 changed files with 16 additions and 13 deletions

View File

@ -108,7 +108,7 @@ pub struct Api {
/// [endpoint](Api::endpoint) [Url].
pub auth: Option<ApiAuth>,
/// Name of the repository on the Git server, as git itself has no concept of repository name
pub repository: String
pub repository: String,
}
impl YamlConfigSection for Api {
fn check(&self) -> Result<()> {

View File

@ -1,5 +1,3 @@
use git2;
use crate::{config::Config, error::Result};
pub async fn tag(_cfg: &Config) -> Result<String> {

View File

@ -1,7 +1,7 @@
pub mod changelog;
pub mod config;
pub mod error;
pub mod git;
pub mod publish;
pub mod release;
pub mod serverapi;
pub mod git;

View File

@ -80,5 +80,7 @@ impl ServerApi for Forgejo {
async fn push_pkg(&mut self, _pc: PublishContext) -> Result<()> {
todo!()
}
fn get_cfg(&self) -> &Api {&self.cfg}
fn get_cfg(&self) -> &Api {
&self.cfg
}
}

View File

@ -23,7 +23,9 @@ impl ServerApi for Gitea {
async fn push_pkg(&mut self, _pc: PublishContext) -> Result<()> {
todo!()
}
fn get_cfg(&self) -> &Api {&self.cfg}
fn get_cfg(&self) -> &Api {
&self.cfg
}
}
impl Gitea {

View File

@ -23,7 +23,9 @@ impl ServerApi for Github {
async fn push_pkg(&mut self, _pc: PublishContext) -> Result<()> {
todo!()
}
fn get_cfg(&self) -> &Api {&self.cfg}
fn get_cfg(&self) -> &Api {
&self.cfg
}
}
impl Github {

View File

@ -23,7 +23,9 @@ impl ServerApi for Gitlab {
async fn push_pkg(&mut self, _pc: PublishContext) -> Result<()> {
todo!()
}
fn get_cfg(&self) -> &Api {&self.cfg}
fn get_cfg(&self) -> &Api {
&self.cfg
}
}
impl Gitlab {

View File

@ -1,13 +1,10 @@
use std::{
ops::{Deref, DerefMut},
slice::Iter,
};
use std::ops::{Deref, DerefMut};
use async_trait::async_trait;
use reqwest::ClientBuilder;
use crate::{
config::{ApiType, Config, self},
config::{self, ApiType, Config},
error::*,
publish::PublishContext,
release::ReleaseContext,