АИ
Size: a a a
АИ
T
🎄
🎄
АИ
PY
f
rust-toolchain.toml? Как вы указываете таргет чтобы из-под M1 маков (aarch) билдились x86_64-only проекты?f
$ cat rust-toolchain.toml
[toolchain]
channel = "nightly"
targets = [ "x86_64" ]f
f
f
GS
rustup show покажет установленные триплетыf
f
[toolchain]
channel = "nightly"
targets = [ "x86_64-apple-darwin", "x86_64-unknown-linux-gnu" ]nightly-aarch64-apple-darwin (overridden by '.../rust-toolchain.toml')АП
tokio::spawn(proxy::run(app_state, cfg)); // под капотом еще куча tokio::spawn()
actix_web::rt::spawn(proxy::run(app_state, cfg)); // под капотом еще куча actix_web::rt::spawn()
actix_web::rt::spawn(http::run(app_state, cfg));
ph
MS
ΑZ
#[actix_web::main]
async fn main() -> Result<(), Box<dyn Error>> {
let result = main_impl().await;
if let Err(e) = result.as_ref() {
error!("Critical error: {:?}", e)
}
result
}
async fn main_impl() -> Result<(), Box<dyn Error>> {
...
tokio::spawn(invalidation_loop);
...
}MS
ΑZ