bugzilla_query/
lib.rs

1/*
2Copyright 2025 Marek Suchánek <marek.suchanek@protonmail.com>
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8    http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17// Enable additional clippy lints by default.
18#![warn(
19    clippy::pedantic,
20    clippy::unwrap_used,
21    clippy::expect_used,
22    clippy::clone_on_ref_ptr,
23    clippy::todo
24)]
25// Forbid unsafe code in this program.
26#![forbid(unsafe_code)]
27
28mod access;
29mod bug_methods;
30mod bug_model;
31mod errors;
32
33pub use access::{Auth, BzInstance, Pagination};
34pub use bug_model::{Alias, Bug, Component, Flag, OneOrMany, User, Version};
35pub use errors::BugzillaQueryError;
36// Re-export JSON Value because it's an integral part of the bug model.
37pub use serde_json::Value;