forked from rojo-rbx/rojo
Rename dev-live-assets feature to dev_live_assets
This commit is contained in:
@@ -20,11 +20,7 @@ default = []
|
|||||||
unstable_two_way_sync = []
|
unstable_two_way_sync = []
|
||||||
|
|
||||||
# Enable this feature to live-reload assets from the web UI.
|
# Enable this feature to live-reload assets from the web UI.
|
||||||
dev-live-assets = []
|
dev_live_assets = []
|
||||||
|
|
||||||
# Enables specifying user plugins in the project file. User plugins are Lua
|
|
||||||
# files and currently not fully implemented. See issue #55.
|
|
||||||
user-plugins = []
|
|
||||||
|
|
||||||
[workspace]
|
[workspace]
|
||||||
members = [
|
members = [
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
macro_rules! declare_asset {
|
macro_rules! declare_asset {
|
||||||
($name: ident, $path: expr) => {
|
($name: ident, $path: expr) => {
|
||||||
pub fn $name() -> &'static str {
|
pub fn $name() -> &'static str {
|
||||||
if cfg!(feature = "dev-live-assets") {
|
if cfg!(feature = "dev_live_assets") {
|
||||||
use std::{fs::read_to_string, path::Path};
|
use std::{fs::read_to_string, path::Path};
|
||||||
|
|
||||||
let file_path = Path::new(file!());
|
let file_path = Path::new(file!());
|
||||||
|
|||||||
Reference in New Issue
Block a user