21 Commits

Author SHA1 Message Date
osmaczko
f5aa1a7e65
feat: statically link libchat and rln via rust-bundle
Add rust-bundle, a single staticlib crate that depends on both libchat
and rln as rlibs. This ensures rustc links Rust std exactly once,
eliminating duplicate symbol errors on all platforms. Nim targets link
against liblogos_chat_bundle.a; Nix uses a bundleDrv instead of
separate libchat and rln derivations.

Reference: https://doc.rust-lang.org/reference/linkage.html#mixed-rust-and-foreign-codebases
2026-02-28 21:11:25 +01:00
Pablo Lopez
a97d8c1717
fix: mac build (#84)
* fix: mac build

- fix error: `error: darwin.apple_sdk_11_0 has been removed as it was a legacy compatibility stub`
- fix librln hash
- bumped nim-ffi

* fix: typo
2026-02-24 15:40:08 -08:00
osmaczko
74fcb612db
chore: bump libchat (#82) 2026-02-23 20:21:55 +01:00
Jazz Turner-Baggs
c2196c77ee
Identity Simplification (#71)
* Contract interface for bindings

* Add errorType

* Remove Identity files

* Update Echo_bot

* update cbindings

* Add installation name

* Update tests

* bump libchat dep
2026-02-22 17:51:59 -08:00
Patryk Osmaczko
04f46d1797
fix: re-add vendor/nim-ffi submodule to fix C-bindings build
`requires` in the nimble file alone is not sufficient, NBS never calls
`nimble install` or clones URLs from the `requires` block at build time.
The package must be present as a git submodule for NBS to discover and
link it.

Migrating to `nimble install` is a separate task.
2026-02-18 22:20:16 +01:00
osmaczko
240a46e475
fix: update library bindings for libchat integration (#69) 2026-02-18 22:20:16 +01:00
Jazz Turner-Baggs
ecfe9218c3
Remove unused submodules (#68)
* Remove uneeded vendored deps

* remove naxoltl

* remove proto definitions
2026-02-18 22:20:16 +01:00
Jazz Turner-Baggs
3bfba7cf25
Libchat library Integration (#55)
* chore: add smoke test and redesign CI workflow (#62)

Add a smoke test that validates the binary links all dependencies
at runtime by instantiating a client without networking. Redesign
CI into separate build and test jobs, with test gated on build.

* Add libchat module

* Add Context

* Add libchat

* Update to latest libchat

* Remove stale files

* Bump to latest Libchat

* Update imports

* Update client

* Update library to work with Libchat

* Fix examples

* Remove Tui Examples - Replace with logos-core

* Add Indentity Todo

* fix: add `build-libchat` as dependency for examples, tests, and library (#59)

The Rust liblogos_chat.so was not being built automatically, causing
runtime failures when loading the shared library.

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Add Todo for Sender data

* Updated error log

---------

Co-authored-by: osmaczko <33099791+osmaczko@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-18 22:20:14 +01:00
Jazz Turner-Baggs
d77bbb6a2a
Fix corrupt submodule (#53) 2026-01-27 07:37:01 -08:00
Jazz Turner-Baggs
285b6f2d2e Add tests + requirements 2025-10-09 22:12:33 -07:00
Jazz Turner-Baggs
15a40f8eff
expose decode in content_types for apps 2025-09-26 12:07:22 -07:00
Jazz Turner-Baggs
5be16419a1
migrate nim_chat_poc to nbs 2025-09-26 11:22:45 -07:00
Ivan Folgueira Bande
7f07a042f0 update nwaku module 2025-09-26 10:35:32 -07:00
Ivan Folgueira Bande
f40a934f7f update nwaku vendor to import waku 2025-09-26 10:35:32 -07:00
Ivan Folgueira Bande
58176a9173 avoid add submodules 2025-09-26 10:35:32 -07:00
Ivan Folgueira Bande
59c9c920be some adaptations for n-b-s 2025-09-26 10:35:32 -07:00
Ivan Folgueira Bande
0743ea467f add nwaku vendor 2025-09-26 10:35:32 -07:00
Ivan Folgueira Bande
650f35b18d add nimbus-build-system 2025-09-26 10:35:32 -07:00
Ivan Folgueira Bande
7c0a847673 rm waku submodule 2025-09-26 10:35:32 -07:00
Jazz Turner-Baggs
1d2aa3453f Fix library conflicts 2025-09-03 14:43:54 -07:00
Jazz Turner-Baggs
adde56532b
Added Waku dependancies 2025-07-21 17:42:44 -07:00