#![forbid(unsafe_code)]
#![deny(missing_docs)]
use std::error::Error;
use std::fmt;
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct NotYetImplemented;
impl fmt::Display for NotYetImplemented {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.write_str(
"the AgentCat Rust SDK is not released yet; this crate reserves the \
name for the official implementation (see https://agentcat.com)",
)
}
}
impl Error for NotYetImplemented {}
pub fn track() -> Result<(), NotYetImplemented> {
Err(NotYetImplemented)
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn track_reports_not_yet_implemented() {
assert_eq!(track(), Err(NotYetImplemented));
assert!(NotYetImplemented.to_string().contains("not released yet"));
}
}