1#![doc = include_str!("../README.md")]
2#![forbid(unsafe_code)]
3#![warn(missing_docs)]
4
5mod checksum;
6pub use checksum::{
7 Blake2b512Checksum,
8 Checksum,
9 Digest,
10 Md5Checksum,
11 Sha1Checksum,
12 Sha224Checksum,
13 Sha256Checksum,
14 Sha384Checksum,
15 Sha512Checksum,
16 SkippableChecksum,
17};
18
19mod source;
20pub use source::Source;
21
22mod url;
23pub use url::{SourceUrl, Url};
24
25pub mod digests {
27 pub use blake2::Blake2b512;
28 pub use digest::Digest;
29 pub use md5::Md5;
30 pub use sha1::Sha1;
31 pub use sha2::{Sha224, Sha256, Sha384, Sha512};
32}
33
34mod date;
35pub use date::{BuildDate, FromOffsetDateTime};
36
37mod env;
38pub use env::{BuildEnvironmentOption, InstalledPackage, MakepkgOption, PackageOption};
39
40mod error;
41pub use error::Error;
42
43mod license;
44pub use license::License;
45
46mod name;
47pub use name::{BuildTool, Name, SharedObjectName};
48
49mod path;
50pub use path::{
51 AbsolutePath,
52 Backup,
53 BuildDirectory,
54 Changelog,
55 Install,
56 RelativePath,
57 StartDirectory,
58};
59
60mod openpgp;
61pub use openpgp::{OpenPGPIdentifier, OpenPGPKeyId, OpenPGPv4Fingerprint, Packager};
62
63mod pkg;
64pub use pkg::{ExtraData, PackageBaseName, PackageDescription, PackageType};
65
66mod relation;
67pub use relation::{
68 Group,
69 OptionalDependency,
70 PackageRelation,
71 SharedLibraryPrefix,
72 Soname,
73 SonameV1,
74 SonameV2,
75 VersionOrSoname,
76};
77
78mod size;
79pub use size::{CompressedSize, InstalledSize};
80
81mod system;
82pub use system::{Architecture, ElfArchitectureFormat};
83
84mod version;
85pub use version::{
86 BuildToolVersion,
87 Epoch,
88 PackageRelease,
89 PackageVersion,
90 SchemaVersion,
91 Version,
92 VersionComparison,
93 VersionRequirement,
94};
95
96pub mod semver_version {
98 pub use semver::Version;
99}