mirror of
https://github.com/logos-messaging/logos-delivery-rust-bindings.git
synced 2026-07-30 06:53:29 +00:00
chore: drop the cmd.c cmdCount/cmdLine shim
The shim existed to satisfy Nim's cmdCount/cmdLine globals, which the static library referenced when it pulled in the command-line machinery. Nothing in liblogosdelivery.a (nor any archive on the link line) references either symbol now, and a clean rebuild of the workspace and the basic example links without it. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
1b25e5c327
commit
6d56b9b523
@ -182,11 +182,6 @@ fn emit_link_flags(nwaku_path: &Path) {
|
||||
println!("cargo:rustc-link-lib=static={librln}");
|
||||
|
||||
// libbacktrace is not linked: the vendor builds with -d:disable_libbacktrace.
|
||||
|
||||
cc::Build::new()
|
||||
.file("src/cmd.c") // Compile the C file
|
||||
.compile("cmditems"); // Compile it as a library
|
||||
println!("cargo:rustc-link-lib=static=cmditems");
|
||||
}
|
||||
|
||||
#[cfg(not(doc))]
|
||||
|
||||
@ -1,13 +0,0 @@
|
||||
|
||||
/*
|
||||
This file is needed to avoid errors like the following when linking the waku-sys lib crate:
|
||||
<<undefined reference to `cmdCount'>>
|
||||
and
|
||||
<<undefined reference to `cmdLine'>>
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
int cmdCount = 0;
|
||||
char** cmdLine = NULL;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user