GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Docs.rs
  • escargot-1.0.1
  • Permalink
  • Docs.rs crate page
  • MIT
  • Apache-2.0
  • Homepage
  • Repository
  • crates.io
  • Source
  • epage
  • log ^0.4.29 normal
  • serde ^1.0.228 normal
  • serde_json ^1.0 normal

This view

  • Original page
  • New address

GeezerVison is showing docs.rs — escargot - Rust

Crate escargot 

Source
Expand description

§Escargot: A Cargo API

§Features

Features:

  • print for logged output to be printed instead, generally for test writing.

§Why escargot

Compared to depending on cargo:

  • Faster compile times.
  • Simpler API.
  • Better interop with projects relying on other cargo versions.
  • Probably slower execution, especially on platforms without an optimized fork (e.g. Windows).

§Relevant crates

Other related crates:

  • cargo for the real thing
  • cargo-metadata for a similar project specifically geared to the metadata subcommand.

§Example

escargot::CargoBuild::new()
    .bin("bin")
    .current_release()
    .current_target()
    .manifest_path("tests/fixtures/bin/Cargo.toml")
    .target_dir(target_dir.path())
    .exec()
    .unwrap();

Modules§

error
Error reporting API.
format
Serialization formats for cargo messages.

Structs§

Cargo
Top-level command.
CargoBuild
The build subcommand.
CargoRun
The run subcommand (emulated).
CargoTesttest_unstable
The test subcommand (emulated).
CommandMessages
Messages returned from a cargo sub-command.
Message
An individual message from a cargo sub-command.

Constants§

CURRENT_TARGET
The current process’ target triplet.
You are visitor 01402639 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.