MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / source_label

Function source_label

packages/server/src/devtools.rs:2010–2020  ·  view source on GitHub ↗
(source: &str)

Source from the content-addressed store, hash-verified

2008}
2009
2010fn source_label(source: &str) -> &'static str {
2011 match source {
2012 "react-native" => "React Native",
2013 SOURCE_REACT_NATIVE_METRO => "React Native Metro",
2014 SOURCE_CHROME_INSPECTOR => "Chrome Inspector",
2015 "nativescript" => "NativeScript",
2016 "swiftui" => "SwiftUI",
2017 "in-app-inspector" => "UIKit",
2018 _ => "App",
2019 }
2020}
2021
2022fn websocket_url(http_origin: &str, path: &str) -> String {
2023 if http_origin.starts_with("https://") {

Callers 1

build_targetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected