Skip to main content

arc_agi_rs/
lib.rs

1// Copyright 2026 Mahmoud Harmouch.
2//
3// Licensed under the MIT license
4// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
5// option. This file may not be copied, modified, or distributed
6// except according to those terms.
7
8#![doc(
9    html_logo_url = "https://raw.githubusercontent.com/wiseaidotdev/arc-agi-rs/refs/heads/main/assets/logo.png",
10    html_favicon_url = "https://raw.githubusercontent.com/wiseaidotdev/arc-agi-rs/refs/heads/main/assets/favicon.png"
11)]
12#![cfg_attr(docsrs, feature(doc_cfg))]
13#![doc = include_str!("../README.md")]
14#![doc = include_str!("../RUST.md")]
15
16pub mod client;
17pub mod error;
18pub mod models;
19pub mod params;
20pub mod response;
21pub mod scorecard;
22
23#[cfg(feature = "python")]
24pub mod python;
25
26#[cfg(all(feature = "node", not(feature = "native-binary")))]
27pub mod node;
28
29pub use error::ArcAgiError;
30pub use serde_json;
31
32pub type Result<T> = std::result::Result<T, ArcAgiError>;
33
34#[cfg(feature = "python")]
35use pyo3::prelude::*;
36
37#[cfg(feature = "python")]
38#[pymodule]
39fn _arc_agi_rs(py: Python<'_>, m: &Bound<'_, PyModule>) -> PyResult<()> {
40    python::register_python_module(py, m)
41}
42
43// Copyright 2026 Mahmoud Harmouch.
44//
45// Licensed under the MIT license
46// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
47// option. This file may not be copied, modified, or distributed
48// except according to those terms.