mirror of
https://github.com/Quad4-Software/Reticulum-Go
synced 2026-08-29 23:48:44 -04:00
Bring tinygo up to date with dev while keeping embedded drivers (Serial, LoRa, RNode) behind TinyGo build tags. Pin TinyGo CI to 0.41.1, restore WASI/wasm build targets, and exclude desktop-only interfaces from TinyGo builds via stubs and tag splits.
21 lines
526 B
Go
21 lines
526 B
Go
// SPDX-License-Identifier: Apache-2.0
|
|
// Copyright (c) 2024-2026 Quad4.io
|
|
|
|
//go:build tinygo
|
|
|
|
package sharedinstance
|
|
|
|
import (
|
|
"quad4/reticulum-go/pkg/common"
|
|
"quad4/reticulum-go/pkg/transport"
|
|
)
|
|
|
|
// Attach is a no-op on TinyGo: local shared-instance sockets are not supported.
|
|
func Attach(cfg *common.ReticulumConfig, tr *transport.Transport, hooks Hooks) (*Instance, error) {
|
|
_ = tr
|
|
_ = hooks
|
|
if cfg != nil && cfg.ShareInstance {
|
|
cfg.ConnectedToSharedInstance = false
|
|
}
|
|
return &Instance{Mode: ModeDisabled}, nil
|
|
}
|