Registry / networking / curl-sys

curl-sys

JSON →
library0.4.88+curl-8.20.0rscratesunverified

Native FFI bindings to the libcurl library for Rust.

# Cargo.toml [dependencies] curl-sys = "0.4.88+curl-8.20.0"
INSTALL
IMPORT
SIG · CURL-SYS
C
curl-sys
networkingrustv0.4.88+curl-8.20.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

easy
use curl_sys::easy;

Performs a simple HTTP GET request using libcurl.

use curl_sys::easy::Easy; fn main() { let mut handle = Easy::new(); handle.url("https://example.com").unwrap(); handle.perform().unwrap(); println!("Response code: {}", handle.response_code().unwrap()); }
Debug
Known issues
gotchaRequires libcurl development headers installed on the system.
fix
Install libcurl-dev (Linux) or use vcpkg (Windows).
affects: >=0.4.0
Upgrade
Version history
0.4.88+curl-8.20.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
OpenAI (training)
1
Resources