mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-27 20:08:40 +00:00
I'm trying to remove the "regexp" and "regexp/syntax" packages from our minimal builds. But tsweb pulls in regexp (via net/http/pprof etc) and util/eventbus was importing the tsweb for no reason. Updates #12614 Change-Id: Ifa8c371ece348f1dbf80d6b251381f3ed39d5fbd Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
19 lines
701 B
Go
19 lines
701 B
Go
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
//go:build ios || android || ts_omit_debugeventbus
|
|
|
|
package eventbus
|
|
|
|
func registerHTTPDebugger(d *Debugger, tsWebDebugHandler any) {
|
|
// The event bus debugging UI uses html/template, which uses
|
|
// reflection for method lookups. This forces the compiler to
|
|
// retain a lot more code and information to make dynamic method
|
|
// dispatch work, which is unacceptable bloat for the iOS build.
|
|
// We also disable it on Android while we're at it, as nobody
|
|
// is debugging Tailscale internals on Android.
|
|
//
|
|
// TODO: https://github.com/tailscale/tailscale/issues/15297 to
|
|
// bring the debug UI back to iOS somehow.
|
|
}
|