cargo

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package cargo contains helper functions for building Rust applications using cargo.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(release bool, target string) (string, error)

Build builds a Rust program using `cargo` in the current working directory.

Types

type Metadata

type Metadata struct {
	Name    string
	Version string
}

Metadata is the cargo package metadata.

func GetMetadata

func GetMetadata() (*Metadata, error)

GetMetadata queries `cargo` for metadata of the package in the current working directory.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL