MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / parse_major_version

Function parse_major_version

crates/cli/src/tasks/csharp.rs:7–9  ·  view source on GitHub ↗
(version: &str)

Source from the content-addressed store, hash-verified

5use std::path::{Path, PathBuf};
6
7fn parse_major_version(version: &str) -> Option<u8> {
8 version.split('.').next()?.parse::<u8>().ok()
9}
10
11pub(crate) fn build_csharp(project_path: &Path, build_debug: bool) -> anyhow::Result<PathBuf> {
12 // All `dotnet` commands must execute in the project directory, otherwise

Callers 1

build_csharpFunction · 0.85

Calls 3

splitMethod · 0.80
okMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…