/
githubmirror
/
dbus-broker
Обзор
Документация
Войти
/
githubmirror
/
dbus-broker
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/lib-generated.rs
35 строк
1 KB
David Rheinsberg
build: add SPDX annotations
30 июн 2026, 15:45
30 июн 2026, 15:45
0bca774
Код
Авторство
О чём код?
// SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: D-Bus Broker Developers //! # Generated Rust Code //! //! This Rust crate bundles all generated Rust artifacts (mainly from //! `bindgen`) into a single Rust crate. It is then linked into the other //! Rust crates that need access to it. //! //! The main reason for separating generated code is to simplify build //! definitions: Rust relies on a structured source tree, which is hard to //! replicate when generating sources in a read-only source directory. Instead //! of copying everything, we separate generated sources into private crates //! and pull them in from all its users. #![no_std] extern crate alloc; extern crate core; #[allow( dead_code, non_camel_case_types, non_snake_case, non_upper_case_globals, )] mod generated { pub mod session_main; pub mod util_acct; } // The build system puts generated sources in a `./generated/*` sub-directory. // Lets strip this from any paths, given that the crate is already specific to // generated sources. pub use generated::*;