Debian Codegraph @

src/lib.rs

raw
1 //! Builds wheels from a crate that exposes python bindings through pyo3
2 //!
3 //! The high-level api is [BuildOptions], which can be converted into the [BuildContext], which
4 //! then uses [compile()] and builds the appropriate wheels.
5 //!
6 //! # Cargo features
7 //!
8 //! Default features: log, upload, rustls
9 //!
10 //! - log: Configures pretty-env-logger, even though maturin doesn't use logging itself.
11 //!
12 //! - upload: Uses ureq to add the upload command.
13 //!
14 //! - rustls: Makes ureq use the rustls stack so that we can build maturin in a CentOS 6
15 //! docker container and which maturin itself manylinux compliant.
16 //!
17 //! - native-tls: Makes ureq use the platform native tls stack
18 //!
19 //! - password-storage (off by default): Uses the keyring package to store the password. keyring
20 //! pulls in a lot of shared libraries and outdated dependencies, so this is off by default, except
21 //! for the build on the github releases page.
22 //! (https://github.com/hwchen/secret-service-rs/issues/9)
23
24 #![deny(missing_docs)]
25
26 pub use crate::bridge::{Abi3Version, BridgeModel, PyO3, PyO3Crate};
27 pub use crate::build_context::{BuildContext, BuiltWheelMetadata};
28 pub use crate::build_options::{BuildOptions, CargoOptions, TargetTriple};
29 pub use crate::cargo_toml::CargoToml;
30 pub use crate::compile::{compile, BuildArtifact};
31 pub use crate::compression::{CompressionMethod, CompressionOptions};
32 pub use crate::develop::{develop, DevelopOptions};
33 #[cfg(feature = "schemars")]
34 pub use crate::generate_json_schema::{generate_json_schema, GenerateJsonSchemaOptions, Mode};
35 pub use crate::metadata::{Metadata24, WheelMetadata};
36 pub use crate::module_writer::{
37 write_dist_info, ModuleWriter, PathWriter, SDistWriter, WheelWriter,
38 };
39 #[cfg(feature = "scaffolding")]
40 pub use crate::new_project::{init_project, new_project, GenerateProjectOptions};
41 pub use crate::pyproject_toml::PyProjectToml;
42 pub use crate::python_interpreter::PythonInterpreter;
43 pub use crate::source_distribution::find_path_deps;
44 #[cfg(feature = "upload")]
45 pub use crate::upload::{upload, upload_ui, PublishOpt, Registry, UploadError};
46 pub use auditwheel::PlatformTag;
47 pub use target::Target;
48
49 mod auditwheel;
50 mod bridge;
51 mod build_context;
52 mod build_options;
53 mod cargo_toml;
54 #[cfg(feature = "scaffolding")]
55 /// Generate CI configuration
56 pub mod ci;
57 mod compile;
58 mod compression;
59 mod cross_compile;
60 mod develop;
61 mod generate_json_schema;
62 mod metadata;
63 mod module_writer;
64 #[cfg(feature = "scaffolding")]
65 mod new_project;
66 mod project_layout;
67 pub mod pyproject_toml;
68 mod python_interpreter;
69 mod source_distribution;
70 mod target;
71 #[cfg(feature = "upload")]
72 mod upload;