tools/corrosion/test/cxxbridge/cxxbridge_rust2cpp/main.cpp
author unC0Rr
Wed, 28 Aug 2024 15:31:51 +0200
branchtransitional_engine
changeset 16021 6a3dc15b78b9
permissions -rw-r--r--
Add corrosion as a subdirectory, CMake fixes

#include <cxxbridge-cpp/foo/mod.h>
#include <cxxbridge-cpp/lib.h>
#include <vector>

int main(int argc, char **argv)
{
    std::vector<uint64_t> input = { 4, 5, 6};
    rust::Slice<const ::std::uint64_t> slice{input.data(), input.size()};
    lib::print(slice);
    foo::print(slice);
}