# BuildInputs

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-hot-patch/inputs/struct-buildinputs/

**struct** · [`ferroui-hot-patch`](/docs/0.5.0/api/ferroui-hot-patch/) · v0.5.0

```rust
struct BuildInputs
```

An owned, byte-exact revision. Rust sources remain text for function admission;
every other input is encoded so binary assets are covered without lossy decoding.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.HotPatch/inputs.rs#L17)

## Members

- [`capture`](#function-capture)
- [`snapshot`](#function-snapshot)
- [`stage`](#function-stage)

<a id="function-capture"></a>

### capture

```rust
fn capture(root: &Path, excluded_directories: &[PathBuf], context: BTreeMap<String, String>) -> io::Result<Self>
```

Read all regular files recursively. Exclusions are explicit root-relative
directories, normally `.git` and the build output directory. Never exclude
a dependency or compiler input. Symlinks are rejected instead of silently
overlooking external inputs or making the staged build resolve differently.
Two identical reads reject ordinary edits during capture; the staged bytes,
rather than the mutable source directory, must be used for compilation.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.HotPatch/inputs.rs#L31)

<a id="function-snapshot"></a>

### snapshot

```rust
fn snapshot(self: &Self) -> io::Result<SourceSnapshot>
```

Exact comparison inputs for `PatchSupervisor`. Context keys live outside the
filesystem namespace and must include toolchain identity and relevant env.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.HotPatch/inputs.rs#L79)

<a id="function-stage"></a>

### stage

```rust
fn stage(self: &Self) -> io::Result<StagedInputs>
```

Create an isolated source tree from the captured bytes, never by rereading
live sources. Keep this object alive for the entire build and verification.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.HotPatch/inputs.rs#L107)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `Clone`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
