| Crates.io | pickAjaxPost |
| lib.rs | pickAjaxPost |
| version | 0.1.0 |
| created_at | 2025-11-22 00:08:09.997646+00 |
| updated_at | 2025-11-22 00:08:09.997646+00 |
| description | Simple Rust AJAX-like JSON POST to PHP |
| homepage | https://github.com/yourname/pickAjaxPost |
| repository | https://github.com/yourname/pickAjaxPost |
| max_upload_size | |
| id | 1944529 |
| size | 46,866 |
Simple Rust JSON POST like AJAX to PHP
use pickAjaxPost::ajax_post;
use serde_json::json;
#[tokio::main]
async fn main() {
let data = json!({ "name": "chai" });
let result = ajax_post("https://yourserver.com/api.php", &data).await.unwrap();
println!("Response = {:?}", result);
}