purl_rs/
lib.rs

1//! # purl-rs
2//!
3//! A curl-like CLI tool for making HTTP requests with automatic payment support.
4//!
5//! This crate provides the core library functionality for purl, a tool that extends
6//! traditional HTTP clients with support for paid APIs using the HTTP 402 Payment
7//! Required status code.
8
9#![doc(html_root_url = "https://docs.rs/purl-rs/0.1.0")]
10
11/// Placeholder for future purl library functionality.
12///
13/// This is a name reservation crate. Full functionality will be added in future versions.
14pub fn version() -> &'static str {
15    env!("CARGO_PKG_VERSION")
16}
17
18#[cfg(test)]
19mod tests {
20    use super::*;
21
22    #[test]
23    fn test_version() {
24        assert_eq!(version(), "0.1.0");
25    }
26}