Initial implementation #1
3 changed files with 0 additions and 40 deletions
remove openapi test
commit
0f0c272046
10
Cargo.toml
10
Cargo.toml
|
|
@ -1,18 +1,8 @@
|
|||
[workspace]
|
||||
resolver = "3"
|
||||
members = [
|
||||
"forgejo-openapi-test"
|
||||
]
|
||||
|
||||
[workspace.dependencies]
|
||||
# git
|
||||
forgejo-openapi = { git = "https://git.dzuchun.ing/dzu/forgejo-openapi.git", default-features = false }
|
||||
# crates.io
|
||||
tokio = { version = "^1.46.0", default-features = false }
|
||||
reqwest = { version = "^0.12", default-features = false }
|
||||
|
||||
[profile.release]
|
||||
opt-level = "z"
|
||||
strip = true
|
||||
lto = true
|
||||
codegen-units = 1
|
||||
|
|
|
|||
|
|
@ -1,10 +0,0 @@
|
|||
[package]
|
||||
name = "forgejo-openapi-test"
|
||||
publish = false
|
||||
version = "0.0.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
forgejo-openapi = { workspace = true, features = ["rustls-tls"] }
|
||||
reqwest = { workspace = true }
|
||||
tokio = { workspace = true, features = ["macros"] }
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
#[tokio::main(flavor = "current_thread")]
|
||||
async fn main() {
|
||||
let client = reqwest::Client::new();
|
||||
let config = forgejo_openapi::apis::configuration::Configuration {
|
||||
base_path: String::from("https://git.dzuchun.ing/api/v1"),
|
||||
user_agent: None,
|
||||
client,
|
||||
basic_auth: None,
|
||||
oauth_access_token: None,
|
||||
bearer_access_token: None,
|
||||
api_key: None,
|
||||
};
|
||||
let results = forgejo_openapi::apis::repository_api::repo_search(
|
||||
&config, None, None, None, None, None, None, None, None, None, None, None, None, None,
|
||||
None, None, None, None,
|
||||
)
|
||||
.await
|
||||
.unwrap();
|
||||
println!("{results:#?}");
|
||||
}
|
||||
Loading…
Reference in a new issue