mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 05:51:39 +00:00
Use msgpack for API
This commit is contained in:
parent
3d328c1d42
commit
bda2af3dfb
12 changed files with 264 additions and 172 deletions
15
build.rs
15
build.rs
|
|
@ -30,6 +30,20 @@ fn snapshot_from_fs_path(path: &Path) -> io::Result<VfsSnapshot> {
|
|||
continue;
|
||||
}
|
||||
|
||||
// Skip binary asset files that can't be read as text
|
||||
if file_name.ends_with(".png")
|
||||
|| file_name.ends_with(".jpg")
|
||||
|| file_name.ends_with(".gif")
|
||||
|| file_name.ends_with(".webp")
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// Skip directories that aren't needed for plugin functionality
|
||||
if file_name == "assets" || file_name == "benchmark" {
|
||||
continue;
|
||||
}
|
||||
|
||||
let child_snapshot = snapshot_from_fs_path(&entry.path())?;
|
||||
children.push((file_name, child_snapshot));
|
||||
}
|
||||
|
|
@ -66,6 +80,7 @@ fn main() -> Result<(), anyhow::Error> {
|
|||
"fmt" => snapshot_from_fs_path(&plugin_dir.join("fmt"))?,
|
||||
"http" => snapshot_from_fs_path(&plugin_dir.join("http"))?,
|
||||
"log" => snapshot_from_fs_path(&plugin_dir.join("log"))?,
|
||||
"msgpack" => snapshot_from_fs_path(&plugin_dir.join("msgpack.lua"))?,
|
||||
"rbx_dom_lua" => snapshot_from_fs_path(&plugin_dir.join("rbx_dom_lua"))?,
|
||||
"src" => snapshot_from_fs_path(&plugin_dir.join("src"))?,
|
||||
"Packages" => snapshot_from_fs_path(&plugin_dir.join("Packages"))?,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue