blob: c74ea4ab79b4ca2802bc67ab03d5ce3ed8a912aa [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",
# FIXME(https://fxbug.dev/332277415): Please update to syn 2.x.
# "//third_party/rust_crates:syn",
"//third_party/rust_crates:syn-v1_0_98",
]
source_root = "src/macro.rs"
sources = [ "src/macro.rs" ]
}