v8 0.48.1

Rust bindings to V8
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <iostream>

#if defined(RUST_ENABLED)
#include "build/rust/tests/test_mixed_executable/src/lib.rs.h"
#endif

int main(int argc, const char* argv[]) {
#if defined(RUST_ENABLED)
  print_message_from_rust();
#else
  std::cout << "Here is a message from C++.\n";
#endif
  return 0;
}