base.rs 1.1 KB

123456789101112131415161718192021222324252627
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. // TODO(crbug.com/1298039): A buildflag macro should be used instead.
  5. #[cfg(buildflag__build_rust_json_parser)]
  6. mod json;
  7. // TODO(crbug.com/1298039): A buildflag macro should be used instead.
  8. #[cfg(buildflag__build_rust_json_parser)]
  9. mod rs_glue;
  10. // TODO(crbug.com/1298039): A buildflag macro should be used instead.
  11. #[cfg(buildflag__build_rust_json_parser)]
  12. mod values;
  13. // TODO(crbug.com/1298039): A buildflag macro should be used instead.
  14. #[cfg(buildflag__build_rust_json_parser)]
  15. mod values_deserialization;
  16. // TODO(crbug.com/1298039): A buildflag macro should be used instead.
  17. #[cfg(buildflag__build_rust_json_parser)]
  18. pub use json::json_parser::{decode_json, JsonOptions};
  19. // TODO(crbug.com/1298039): A buildflag macro should be used instead.
  20. #[cfg(buildflag__build_rust_json_parser)]
  21. pub use values::ValueSlotRef;
  22. // TODO(crbug.com/1298039): A buildflag macro should be used instead.
  23. #[cfg(buildflag__build_rust_json_parser)]
  24. pub use rs_glue::ffi::NewValueSlotForTesting;