tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

main.rs (429B)


      1 // Copyright 2024 The Chromium Authors
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 chromium::import! {
      6    "//chromium/build/rust/tests/bindgen_cpp_test:cpp_lib_bindgen";
      7 }
      8 
      9 pub fn main() {
     10    let from_cpp =
     11        unsafe { cpp_lib_bindgen::functions::normal_fn(cpp_lib_bindgen::functions::kNumber) };
     12    println!("2 == {from_cpp}");
     13    assert_eq!(2, from_cpp);
     14 }