serde_device_tree/lib.rs
1// Copyright (c) 2021 HUST IoT Security Lab
2// serde_device_tree is licensed under Mulan PSL v2.
3// You can use this software according to the terms and conditions of the Mulan PSL v2.
4// You may obtain a copy of Mulan PSL v2 at:
5// http://license.coscl.org.cn/MulanPSL2
6// THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
7// EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
8// MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
9// See the Mulan PSL v2 for more details.
10
11#![feature(ptr_metadata)]
12#![cfg_attr(not(feature = "std"), no_std)]
13
14#[cfg(feature = "alloc")]
15extern crate alloc;
16
17pub mod de;
18pub mod error;
19
20pub use de::from_raw;