1#
2#  Copyright 2023 Google, Inc.
3#
4#  Licensed under the Apache License, Version 2.0 (the "License");
5#  you may not use this file except in compliance with the License.
6#  You may obtain a copy of the License at:
7#
8#  http://www.apache.org/licenses/LICENSE-2.0
9#
10#  Unless required by applicable law or agreed to in writing, software
11#  distributed under the License is distributed on an "AS IS" BASIS,
12#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13#  See the License for the specific language governing permissions and
14#  limitations under the License.
15
16# This crate is a temporary package until we can parse l2cap_packets.pdl file
17# properly. Until then, we fork the file to this crate so we get a workable
18# l2cap_packets.rs to be used to speed up the development of hcidoc.
19# The content of this crate mainly copies bt_packets, which is located in
20# system/gd/rust/packets.
21
22[package]
23name = "hcidoc_packets"
24version = "0.0.1"
25edition = "2018"
26build = "build.rs"
27
28[dependencies]
29bindgen = "0.64"
30bytes = "1.0"
31num-derive = "0.3"
32num-traits = "0.2"
33pdl-runtime = "0.2"
34thiserror = "1.0"
35walkdir = "2.2"
36
37[lib]
38path = "lib.rs"
39crate-type = ["rlib"]
40