blob: c21eacce93eb503a83ba4a3680f8c3ea01252338 [file] [log] [blame]
# Copyright 2020 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/rust/rustc_library.gni")
import("//build/rust/rustc_macro.gni")
rustc_library("from-enum") {
edition = "2021"
deps = [ ":from-enum-derive" ]
sources = [ "src/lib.rs" ]
}
rustc_macro("from-enum-derive") {
edition = "2021"
deps = [
"//third_party/rust_crates:darling",
"//third_party/rust_crates:proc-macro2",
"//third_party/rust_crates:quote",
"//third_party/rust_crates:syn",
]
source_root = "src/macro.rs"
sources = [ "src/macro.rs" ]
}