Debian Codegraph @

experimental/rust_cxx/main.cpp

raw
1 // Copyright 2023 Google LLC
2 // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
3
4 // namespace hype_train
5 #include "experimental/rust_cxx/gen/hype-bridge.rs.h"
6
7 #include <stdio.h>
8 #include <string>
9
10
11 int main(int argc, char** argv) {
12 printf("Hello C++\n");
13
14 std::string words = "it works";
15
16 hype_train::HypeOutput result = hype_train::hypeify(words, 3);
17
18 printf("%s\n", result.output.c_str());
19 printf("new len: %lu\n", result.new_len);
20
21 return 0;
22 }