På fredag 19. juni 2026 kl. 07:48, skrev Rafael Sadowski <rafael@sizeofvoid.org>: > First of all, this is my first rust port. We need this cli tool as a > dependency for corrosion to integrate Rust into an existing CMake > projects. > > As there was no Cargo.lock file, I created one and added it as a patch. > Is that OK, or is there a better way? > > Anyway, I've now managed to build C++ CMake ports that contain some Rust > code (it's all a bit of a hassle because of our "build user has no > internet" policy, but it works \o/). > > Rafael > Builds on current/amd64 with privsep. I see no formatting or grammar/spelling mistakes either. The only thing I noticed was that the crates.inc were missing licences. $ cd /usr/ports/devel/cxxbridge-cmd/ && make test lib-port-depends-check check-shlib-syms running 11 tests test src/cxx_string.rs - string::let_cxx_string (line 56) ... ok test src/cxx_string.rs - string::let_cxx_string (line 71) ... ok test src/extern_type.rs - extern_type::ExternType (line 31) - compile ... ok test src/extern_type.rs - extern_type::ExternType (line 68) - compile ... ok test src/cxx_vector.rs - cxx_vector::VectorElement (line 389) ... ok test src/extern_type.rs - extern_type::ExternType::Kind (line 131) ... ok test src/extern_type.rs - extern_type::ExternType::Id (line 106) ... ok test src/lib.rs - (line 248) - compile ... ok test src/lib.rs - (line 78) - compile ... ok test src/unique_ptr.rs - unique_ptr::UniquePtrTarget (line 366) ... ok test src/shared_ptr.rs - shared_ptr::SharedPtrTarget (line 362) ... ok test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.39s -- Looks good aside from the missing licenses in crates.inc . -- yaydn > Information for inst:cxxbridge-cmd-1.0.194 > > Comment: > C++ code generator for the CXX Rust/C++ FFI > > Required by: > corrosion-0.6.1 > > Description: > cxxbridge is the standalone C++ code generator from the CXX project, which > provides a safe foreign function interface between Rust and C++. > > Maintainer: The OpenBSD ports mailing-list <ports@openbsd.org> > > WWW: https://cxx.rs
No comments:
Post a Comment