bevy_etcetera

Crates.iobevy_etcetera
lib.rsbevy_etcetera
version0.1.0
sourcesrc
created_at2024-08-18 20:41:14.650481
updated_at2024-08-18 20:41:14.650481
descriptionTiny Bevy wrapper for etcetera: An unopinionated library for obtaining configuration, data, cache, & other directories
homepagehttps://github.com/piedoom/bevy_etcetera
repositoryhttps://github.com/piedoom/bevy_etcetera
max_upload_size
id1342980
size6,503
doomy (piedoom)

documentation

https://docs.rs/bevy_etcetera

README

bevy_etcetera

A very small bevy wrapper over etcetera. It allows you to access common directories across MacOS, Windows, and Linux.

Basic usage

bevy_etcetera = { git = "https://github.com/piedoom/bevy_etcetera" }
# Alternatively, copy the contents of `lib.rs` into your project
use bevy_etcetera::Directories;
use bevy::prelude::*;

let mut world = World::new();
let directories = Directories::new("com", "doomy", "Cool Bevy Game");
world.insert_resource(directories);

fn my_system(directories: Res<Directories>) {
  // Path dependent on OS
  let path = directories.data_dir().join("some_file").with_extension("item.ron");
}
Commit count: 0

cargo fmt