-
Notifications
You must be signed in to change notification settings - Fork 778
Closed as not planned
Closed as not planned
Copy link
Description
was just attempting this eventsource_client on windows.
use eventsource_client::Client as EventSourceClient;
use futures::StreamExt;
use std::env;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
// Get the SSE URL from the environment or default to localhost:3030/sse.
let url = env::var("SSE_URL").unwrap_or_else(|_| "http://127.0.0.1:3030/sse".to_string());
println!("Connecting to SSE endpoint at {}", url);
// Create an EventSource client.
let client = EventSourceClient::for_url(&url)?;
let mut stream = client.stream();
// Listen for events.
while let Some(event) = stream.next().await {
match event {
Ok(ev) => {
println!("Received event: id = {:?}, data = {:?}", ev.id, ev.data);
}
Err(err) => {
eprintln!("Error receiving event: {}", err);
}
}
}
Ok(())
}
I get:
cargo:rerun-if-env-changed=INCLUDE
INCLUDE = None
HOST = Some(x86_64-pc-windows-msvc)
cargo:rerun-if-env-changed=CC_x86_64-pc-windows-msvc
CC_x86_64-pc-windows-msvc = None
cargo:rerun-if-env-changed=CC_x86_64_pc_windows_msvc
CC_x86_64_pc_windows_msvc = None
cargo:rerun-if-env-changed=HOST_CC
HOST_CC = None
cargo:rerun-if-env-changed=CC
CC = None
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some(cmpxchg16b,fxsr,lahfsahf,sse,sse2,sse3)
DEBUG = Some(true)
cargo:rerun-if-env-changed=CFLAGS_x86_64-pc-windows-msvc
CFLAGS_x86_64-pc-windows-msvc = None
cargo:rerun-if-env-changed=CFLAGS_x86_64_pc_windows_msvc
CFLAGS_x86_64_pc_windows_msvc = None
cargo:rerun-if-env-changed=HOST_CFLAGS
HOST_CFLAGS = None
cargo:rerun-if-env-changed=CFLAGS
CFLAGS = None
CARGO_ENCODED_RUSTFLAGS = Some(-Aunreachable_code▼-Airrefutable_let_patterns▼-Aunused_assignments▼-Aunused_must_use▼-Adead_code)
curve25519.c
aes_nohw.c
C:\Users\dhorner\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ring-0.17.9\crypto\fipsmodule\aes\aes_nohw.c : fatal error C1056: cannot update the time date stamp field in 'c:\working\rust\codepen_genai\ts\servers\sse\sse_example\target\debug\build\ring-6f25180f880a733d\out\3c60697ff6d5dd9e-aes_nohw.o'; error code %u
--- stderr
error occurred in cc-rs: Command "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "C:\\Users\\dhorner\\.cargo\\registry\\src\\index.crates.io-6f17d22bba15001f\\ring-0.17.9\\include" "-I" "C:\\Users\\dhorner\\.cargo\\registry\\src\\index.crates.io-6f17d22bba15001f\\ring-0.17.9\\pregenerated" "-W4" "/Gy" "/Zc:wchar_t" "/Zc:forScope" "/Zc:inline" "/Wall" "/wd4127" "/wd4464" "/wd4514" "/wd4710" "/wd4711" "/wd4820" "/wd5045" "-DNDEBUG" "-Foc:\\working\\rust\\codepen_genai\\ts\\servers\\sse\\sse_example\\target\\debug\\build\\ring-6f25180f880a733d\\out\\3c60697ff6d5dd9e-aes_nohw.o" "-c" "C:\\Users\\dhorner\\.cargo\\registry\\src\\index.crates.io-6f17d22bba15001f\\ring-0.17.9\\crypto/fipsmodule/aes/aes_nohw.c" with args cl.exe did not execute successfully (status code exit code: 2).
Metadata
Metadata
Assignees
Labels
No labels