
Volohnix
Hands-on Rust: Can't make executable work
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:
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:
mygame folder is also following this:
.
├── 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
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
Popular Pragmatic Bookshelf topics

As per the title, thanks.
New

Many tasks_proj/tests directories exist in chapters 2, 3, 5 that have tests that use the custom markers smoke and get, which are not decl...
New

Title: Web Development with Clojure, Third Edition, pg 116
Hi - I just started chapter 5 and I am stuck on page 116 while trying to star...
New

I can’t setup the Rails source code. This happens in a working directory containing multiple (postgres) Rails apps.
With:
ruby-3.0.0
s...
New

I’m new to Rust and am using this book to learn more as well as to feed my interest in game dev. I’ve just finished the flappy dragon exa...
New

“The ProductLive.Index template calls a helper function, live_component/3, that in turn calls on the modal component. ”
Excerpt From: Br...
New

Title: Build a Weather Station with Elixir and Nerves: Problem connecting to Postgres with Grafana on (page 64)
If you follow the defau...
New

Is the book’s epub format available to read on Google Play Books?
New

Hi,
I completed chapter 6 but am getting the following error when running:
thread 'main' panicked at 'Failed to load texture: IoError(O...
New

I got this error when executing the plot files on macOS Ventura 13.0.1 with Python 3.10.8 and matplotlib 3.6.1:
programming_ML/code/03_...
New
Other popular topics

Do the test and post your score :nerd_face:
:keyboard:
If possible, please add info such as the keyboard you’re using, the layout (Qw...
New

Hello content creators! Happy new year. What tech topics do you think will be the focus of 2021? My vote for one topic is ethics in tech...
New

Oh just spent so much time on this to discover now that RancherOS is in end of life but Rancher is refusing to mark the Github repo as su...
New

If you are experiencing Rails console using 100% CPU on your dev machine, then updating your development and test gems might fix the issu...
New

Create efficient, elegant software tests in pytest, Python's most powerful testing framework.
Brian Okken @brianokken
Edited by Kat...
New

Biggest jackpot ever apparently! :upside_down_face:
I don’t (usually) gamble/play the lottery, but working on a program to predict the...
New

Author Spotlight:
David Bryant Copeland
@davetron5000
We’re so happy to bring you another Author Spotlight, a series where we sit dow...
New

Inside our android webview app, we are trying to paste the copied content from another app eg (notes) using navigator.clipboard.readtext ...
New

If you’re getting errors like this:
psql: error: connection to server on socket “/tmp/.s.PGSQL.5432” failed: No such file or directory ...
New

Hello,
I’m a beginner in Android development and I’m facing an issue with my project setup. In my build.gradle.kts file, I have the foll...
New
Categories:
Sub Categories:
Popular Portals
- /elixir
- /rust
- /wasm
- /ruby
- /erlang
- /phoenix
- /keyboards
- /rails
- /js
- /python
- /security
- /go
- /swift
- /vim
- /clojure
- /emacs
- /haskell
- /java
- /onivim
- /typescript
- /svelte
- /crystal
- /kotlin
- /c-plus-plus
- /tailwind
- /gleam
- /ocaml
- /react
- /elm
- /flutter
- /vscode
- /ash
- /opensuse
- /html
- /centos
- /php
- /deepseek
- /zig
- /scala
- /sublime-text
- /lisp
- /textmate
- /nixos
- /debian
- /react-native
- /agda
- /kubuntu
- /arch-linux
- /django
- /revery
- /ubuntu
- /spring
- /manjaro
- /nodejs
- /diversity
- /lua
- /julia
- /c
- /slackware
- /markdown