# Hands-on Rust: Can't make executable work

**URL:** <https://forum.devtalk.com/t/hands-on-rust-cant-make-executable-work/207281>\
**Category:** PragProg Customers\
**Tags:** book-hands-on-rust\
**Created:** [17 July 2025 16:48 UTC](https://forum.devtalk.com/t/hands-on-rust-cant-make-executable-work/207281 "2025-07-17T16:48:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Volohnix](https://forum.devtalk.com/letter_avatar_proxy/v4/letter/v/a183cd/32.png) [@Volohnix](https://forum.devtalk.com/u/Volohnix)\
**Post date:** [17 July 2025 16:48 UTC](https://forum.devtalk.com/t/hands-on-rust-cant-make-executable-work/207281/1 "2025-07-17T16:48:34Z")

</div>

Hello, first post in this platform.. so if I posting in the wrong place, forgive me.

I’m finishing my journey with the book but I cannot make my executable to work:

```auto
thread 'main' panicked at /Users/miname/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/bracket-terminal-0.8.7/src/hal/gl_common/font.rs:45:18:
Failed to load texture: IoError(Os { code: 2, kind: NotFound, message: "No such file or directory" })
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

```

I’ve already checked the folder arrangement and looks ok:

 ![Screenshot 2025-07-17 at 10.50.42](https://forum.devtalk.com/uploads/default/original/2X/1/1a79a3ce622e84043762f34e78070dd3d01c7755.png)

mygame folder is also following this:

```auto
.
├── Cargo.lock
├── Cargo.toml
├── readme.md
├── resources
│ ├── dungeonfont.png
│ ├── template.ron
│ └── terminal8x8.png
└── src
    ├── camera.rs
    ├── components.rs
    ├── main.rs
    ├── map_builder
    │ ├── automata.rs
    │ ├── drunkard.rs
    │ ├── empty.rs
    │ ├── mod.rs
    │ ├── prefab.rs
    │ ├── rooms.rs
    │ └── themes.rs
    ├── map.rs
    ├── spawner
    │ ├── mod.rs
    │ └── template.rs
    ├── systems
    │ ├── chasing.rs
    │ ├── combat.rs
    │ ├── end_turn.rs
    │ ├── entity_render.rs
    │ ├── fov.rs
    │ ├── hud.rs
    │ ├── map_render.rs
    │ ├── mod.rs
    │ ├── movement.rs
    │ ├── player_input.rs
    │ ├── random_move.rs
    │ ├── tooltips.rs
    │ ├── use_item.rs
    │ └── use_items.rs
    └── turn_state.rs

```

```auto
fn main() -> BError {
    let context = BTermBuilder::new()
        .with_title("Dungeon Crawler")
        .with_fps_cap(30.0)
        .with_dimensions(DISPLAY_WIDTH, DISPLAY_HEIGHT)
        .with_tile_dimensions(32, 32)
        .with_resource_path("resources/")
        .with_font("dungeonfont.png", 32, 32)
        .with_font("terminal8x8.png", 8, 8)
        .with_simple_console(
            DISPLAY_WIDTH,
            DISPLAY_HEIGHT,
            "dungeonfont.png",
        )
        .with_simple_console_no_bg(
            DISPLAY_WIDTH,
            DISPLAY_HEIGHT,
            "dungeonfont.png",
        )
        .with_simple_console_no_bg(
            SCREEN_WIDTH * 2,
            SCREEN_HEIGHT * 2,
            "terminal8x8.png",
        )
        .build()?;

    main_loop(context, State::new())
}

When I run the game with cargo run it works perfectly. The issue is only with the build --release
```
