1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
//! PythonConfig — configuration for the CPython loader. /// Configuration for the CPython plugin loader. /// /// # Example /// ```rust,ignore /// use polyplug_python::PythonConfig; /// let config = PythonConfig::default(); /// ``` #[derive(Debug, Clone)] pub struct PythonConfig { /// Minimum acceptable Python version as (major, minor). /// e.g. `(3, 11)` requires Python 3.11 or higher. pub min_version: (u32, u32), } impl Default for PythonConfig { fn default() -> PythonConfig { PythonConfig { min_version: (3, 11), } } }