Skip to content

Commit

Permalink
fix cross
Browse files Browse the repository at this point in the history
  • Loading branch information
biezhihua committed Feb 7, 2024
1 parent 8056e8d commit e0c461e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 5 additions & 2 deletions Cross.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# https://github.com/cross-rs/cross
# https://juejin.cn/post/7325645956254351360
# https://github.com/cross-rs/cross-toolchains
# https://hub.docker.com/r/freeznet/x86_64-apple-darwin-cross
Expand All @@ -6,12 +7,14 @@
# linux
[target.x86_64-unknown-linux-gnu]
xargo = false
# dockerfile = "D:\\Projects\\github\\cross\\docker\\Dockerfile.x86_64-unknown-linux-gnu"
image = "togettoyou/ghcr.io.cross-rs.x86_64-unknown-linux-gnu:main"
pre-build = ["apt-get update && apt-get install pkg-config libssl-dev"]

# windwos
[target.x86_64-pc-windows-gnu]
xargo = false
# dockerfile = "D:\\Projects\\github\\cross\\docker\\Dockerfile.x86_64-pc-windows-gnu"
image = "togettoyou/ghcr.io.cross-rs.x86_64-pc-windows-gnu:main"


# macos
[target.x86_64-apple-darwin]
Expand Down
2 changes: 0 additions & 2 deletions soda_cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,9 @@ fn check_internet() -> Result<(), SodaError> {
let _ = reqwest::blocking::get(raw_github_json())?;

tracing::info!(target:"soda::info", "开始访问: https://api.themoviedb.org" );
// let _ = reqwest::blocking::Client::new().post("https://api.themoviedb.org").send()?;
let _ = reqwest::blocking::get(api_themoviedb())?;

tracing::info!(target:"soda::info", "开始访问: https://webservice.fanart.tv" );
// let _ = reqwest::blocking::Client::new().post("https://webservice.fanart.tv").send()?;
let _ = reqwest::blocking::get(api_fanart())?;

return Ok(());
Expand Down

0 comments on commit e0c461e

Please sign in to comment.