droid_wrap/lib.rs
1/*
2 * Copyright (c) 2024. The RigelA open source project team and
3 * its contributors reserve all rights.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software distributed under the
10 * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 * See the License for the specific language governing permissions and limitations under the License.
12 */
13
14//! 封装Android系统的API。
15//! [官方参考文档](https://developer.android.google.cn/reference/packages)
16
17#![warn(missing_docs)]
18#![doc = include_str!("../README.md")]
19
20/**
21包含平台中包含的应用程序使用的资源类,并定义应用程序 系统功能的权限。
22*/
23#[cfg(feature = "android")]
24pub mod android;
25
26/**
27Dalvik 虚拟机。
28*/
29#[cfg(feature = "dalvik")]
30pub mod dalvik {
31 /**
32 Dalvik 虚拟机系统。
33 */
34 #[cfg(feature = "dalvik_system")]
35 pub mod system;
36}
37
38/**
39Java API。
40*/
41#[cfg(feature = "java")]
42pub mod java {
43 /**
44 通过数据流、序列化和文件系统提供系统输入和输出。
45 */
46 #[cfg(feature = "java_io")]
47 pub mod io;
48
49 /**
50 提供对 Java 设计至关重要的类 程序设计语言。
51 */
52 #[cfg(feature = "java_lang")]
53 pub mod lang;
54
55 /**
56 定义缓冲区,它是用于数据的容器,并概述了其他NIO软件包。
57 */
58 #[cfg(feature = "java_nio")]
59 pub mod nio;
60}
61
62pub use droid_wrap_macros::*;
63droid_wrap_utils::import!();