Compare commits

..

No commits in common. "efec592b0d61c2cac4a206cf0ea69b91e1fdee1f" and "ff08e5569cfe4702b992ec3d8b56459b40966a16" have entirely different histories.

12 changed files with 851 additions and 346 deletions

1
.envrc
View File

@ -1 +0,0 @@
use flake

3
.gitignore vendored
View File

@ -1,4 +1,3 @@
**/.vscode/ **/.vscode/
**/target/ **/target/
**/result
**/.direnv

View File

@ -1,59 +0,0 @@
{
"nodes": {
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1694529238,
"narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "ff7b65b44d01cf9ba6a71320833626af21126384",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1697009197,
"narHash": "sha256-viVRhBTFT8fPJTb1N3brQIpFZnttmwo3JVKNuWRVc3s=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "01441e14af5e29c9d27ace398e6dd0b293e25a54",
"type": "github"
},
"original": {
"id": "nixpkgs",
"type": "indirect"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
}
},
"root": "root",
"version": 7
}

View File

@ -1,30 +0,0 @@
{
description = "fox32 tools";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (sys:
let pkgs = import nixpkgs { system = sys; };
in rec {
packages.gfx2inc = pkgs.rustPlatform.buildRustPackage rec {
pname = "gfx2inc";
version = "0.1.0";
src = ./gfx2inc;
cargoLock = { lockFile = ./gfx2inc/Cargo.lock; };
NIX_SEMVER = version;
NIX_GIT_SHA_SHORT = if self ? rev then builtins.substring 0 7 self.rev else "dirty";
};
packages.default = packages.gfx2inc;
devShells.default = pkgs.mkShell {
packages = [ pkgs.cargo ];
};
}
);
}

View File

@ -98,14 +98,7 @@ static inline void draw_tile_generic(void) {
call(0xF0041014); call(0xF0041014);
} }
static inline void set_tilemap( static inline void set_tilemap(void) {
unsigned char* tilemap,
unsigned short width,
unsigned short height
) {
parameter(0, tilemap);
parameter(1, width);
parameter(2, height);
call(0xF0041018); call(0xF0041018);
} }
@ -117,13 +110,8 @@ static inline void draw_filled_rectangle_generic(void) {
call(0xF0041020); call(0xF0041020);
} }
static inline struct return3 get_tilemap(void) { static inline void get_tilemap(void) {
struct return3 result_0;
call(0xF0041024); call(0xF0041024);
ret(0, result_0.return0);
ret(1, result_0.return1);
ret(2, result_0.return2);
return result_0;
} }
// background jump table // background jump table
@ -652,41 +640,19 @@ static inline unsigned int random_range(
// system jump table // system jump table
static inline struct return3 get_os_version(void) { static inline void get_os_version(void) {
struct return3 result_0;
call(0x00000810); call(0x00000810);
ret(0, result_0.return0);
ret(1, result_0.return1);
ret(2, result_0.return2);
return result_0;
} }
// FXF jump table // FXF jump table
static inline unsigned char* parse_fxf_binary( static inline void parse_fxf_binary(void) {
unsigned char* fxf_memory_buffer
) {
unsigned char* result_0;
parameter(0, fxf_memory_buffer);
call(0x00000910); call(0x00000910);
ret(0, result_0);
return result_0;
} }
// task jump table // task jump table
static inline void new_task( static inline void new_task(void) {
unsigned char task_id,
unsigned char* initial_instruction_pointer,
unsigned char* initial_stack_pointer,
unsigned char* code_block_to_free,
unsigned char* stack_block_to_free
) {
parameter(0, task_id);
parameter(1, initial_instruction_pointer);
parameter(2, initial_stack_pointer);
parameter(3, code_block_to_free);
parameter(4, stack_block_to_free);
call(0x00000A10); call(0x00000A10);
} }
@ -698,18 +664,12 @@ static inline void end_current_task(void) {
call(0x00000A18); call(0x00000A18);
} }
static inline unsigned char get_current_task_id(void) { static inline void get_current_task_id(void) {
unsigned char result_0;
call(0x00000A1C); call(0x00000A1C);
ret(0, result_0);
return result_0;
} }
static inline unsigned char get_unused_task_id(void) { static inline void get_unused_task_id(void) {
unsigned char result_0;
call(0x00000A20); call(0x00000A20);
ret(0, result_0);
return result_0;
} }
static inline void is_task_id_used(void) { static inline void is_task_id_used(void) {
@ -722,20 +682,11 @@ static inline void save_state_and_yield_task(void) {
// memory jump table // memory jump table
static inline unsigned char* allocate_memory( static inline void allocate_memory(void) {
unsigned int bytes_to_allocate
) {
unsigned char* result_0;
parameter(0, bytes_to_allocate);
call(0x00000B10); call(0x00000B10);
ret(0, result_0);
return result_0;
} }
static inline void free_memory( static inline void free_memory(void) {
unsigned char* allocated_block
) {
parameter(0, allocated_block);
call(0x00000B14); call(0x00000B14);
} }
@ -769,28 +720,7 @@ static inline void destroy_window(
call(0x00000C14); call(0x00000C14);
} }
static inline void new_window_event( static inline void new_window_event(void) {
unsigned int event_type,
unsigned int parameter0,
unsigned int parameter1,
unsigned int parameter2,
unsigned int parameter3,
unsigned int parameter4,
unsigned int parameter5,
unsigned int parameter6,
unsigned int parameter7,
unsigned char* window_struct
) {
parameter(0, event_type);
parameter(1, parameter0);
parameter(2, parameter1);
parameter(3, parameter2);
parameter(4, parameter3);
parameter(5, parameter4);
parameter(6, parameter5);
parameter(7, parameter6);
parameter(8, parameter7);
parameter(9, window_struct);
call(0x00000C18); call(0x00000C18);
} }
@ -855,25 +785,12 @@ static inline void start_dragging_window(
call(0x00000C30); call(0x00000C30);
} }
static inline void new_messagebox( static inline void new_messagebox(void) {
char* first_line_str,
char* second_line_str,
char* third_line_str,
unsigned short x,
unsigned short y,
unsigned short width
) {
parameter(0, first_line_str);
parameter(1, second_line_str);
parameter(2, third_line_str);
parameter(3, x);
parameter(4, y);
parameter(5, width);
call(0x00000C34); call(0x00000C34);
} }
static inline unsigned char* get_active_window_struct(void) { static inline unsigned int* get_active_window_struct(void) {
unsigned char* result_0; unsigned int* result_0;
call(0x00000C38); call(0x00000C38);
ret(0, result_0); ret(0, result_0);
return result_0; return result_0;
@ -881,81 +798,33 @@ static inline unsigned char* get_active_window_struct(void) {
// VFS jump table // VFS jump table
static inline unsigned short open( static inline void open(void) {
char* file_name,
unsigned char disk_id,
unsigned char* file_struct
) {
unsigned short result_0;
parameter(0, file_name);
parameter(1, disk_id);
parameter(2, file_struct);
call(0x00000D10); call(0x00000D10);
ret(0, result_0);
return result_0;
} }
static inline void seek( static inline void seek(void) {
unsigned int offset,
unsigned char* file_struct
) {
parameter(0, offset);
parameter(1, file_struct);
call(0x00000D14); call(0x00000D14);
} }
static inline unsigned int tell( static inline void tell(void) {
unsigned char* file_struct
) {
unsigned int result_0;
parameter(0, file_struct);
call(0x00000D18); call(0x00000D18);
ret(0, result_0);
return result_0;
} }
static inline unsigned int read( static inline void read(void) {
unsigned int bytes_to_read,
unsigned char* file_struct,
unsigned char* destination_buffer
) {
unsigned int result_0;
parameter(0, bytes_to_read);
parameter(1, file_struct);
parameter(2, destination_buffer);
call(0x00000D1C); call(0x00000D1C);
ret(0, result_0);
return result_0;
} }
static inline void write( static inline void write(void) {
unsigned int bytes_to_write,
unsigned char* file_struct,
unsigned char* source_buffer
) {
parameter(0, bytes_to_write);
parameter(1, file_struct);
parameter(2, source_buffer);
call(0x00000D20); call(0x00000D20);
} }
// widget jump table // widget jump table
static inline void draw_widgets_to_window( static inline void draw_widgets_to_window(void) {
unsigned char* window_struct
) {
parameter(0, window_struct);
call(0x00000E10); call(0x00000E10);
} }
static inline void handle_widget_click( static inline void handle_widget_click(void) {
unsigned char* window_struct,
unsigned short x,
unsigned short y
) {
parameter(0, window_struct);
parameter(1, x);
parameter(2, y);
call(0x00000E14); call(0x00000E14);
} }

View File

@ -213,18 +213,12 @@ define(0xF0041010U, "draw_font_tile_generic") {
define(0xF0041014U, "draw_tile_generic") { define(0xF0041014U, "draw_tile_generic") {
} }
define(0xF0041018U, "set_tilemap") { define(0xF0041018U, "set_tilemap") {
parameter(Byte.ref, "tilemap")
parameter(Half, "width")
parameter(Half, "height")
} }
define(0xF004101CU, "draw_pixel_generic") { define(0xF004101CU, "draw_pixel_generic") {
} }
define(0xF0041020U, "draw_filled_rectangle_generic") { define(0xF0041020U, "draw_filled_rectangle_generic") {
} }
define(0xF0041024U, "get_tilemap") { define(0xF0041024U, "get_tilemap") {
returnstruct("return0", Type("struct return3"))
returnstruct("return1", Type("struct return3"))
returnstruct("return2", Type("struct return3"))
} }
comment("background jump table") comment("background jump table")
@ -494,48 +488,35 @@ comment("fox32os definitions")
comment("system jump table") comment("system jump table")
define(0x00000810U, "get_os_version") { define(0x00000810U, "get_os_version") {
returnstruct("return0", Type("struct return3"))
returnstruct("return1", Type("struct return3"))
returnstruct("return2", Type("struct return3"))
} }
comment("FXF jump table") comment("FXF jump table")
define(0x00000910U, "parse_fxf_binary") { define(0x00000910U, "parse_fxf_binary") {
parameter(Byte.ref, "fxf_memory_buffer")
returns(Byte.ref)
} }
comment("task jump table") comment("task jump table")
define(0x00000A10U, "new_task") { define(0x00000A10U, "new_task") {
parameter(Byte, "task_id")
parameter(Byte.ref, "initial_instruction_pointer")
parameter(Byte.ref, "initial_stack_pointer")
parameter(Byte.ref, "code_block_to_free")
parameter(Byte.ref, "stack_block_to_free")
} }
define(0x00000A14U, "yield_task") {} define(0x00000A14U, "yield_task") {
define(0x00000A18U, "end_current_task") {} }
define(0x00000A18U, "end_current_task") {
}
define(0x00000A1CU, "get_current_task_id") { define(0x00000A1CU, "get_current_task_id") {
returns(Byte)
} }
define(0x00000A20U, "get_unused_task_id") { define(0x00000A20U, "get_unused_task_id") {
returns(Byte)
} }
define(0x00000A24U, "is_task_id_used") { define(0x00000A24U, "is_task_id_used") {
// TODO: returning a value based on the Z flag
} }
define(0x00000A28U, "save_state_and_yield_task") {} define(0x00000A28U, "save_state_and_yield_task") {
}
comment("memory jump table") comment("memory jump table")
define(0x00000B10U, "allocate_memory") { define(0x00000B10U, "allocate_memory") {
parameter(Word, "bytes_to_allocate")
returns(Byte.ref)
} }
define(0x00000B14U, "free_memory") { define(0x00000B14U, "free_memory") {
parameter(Byte.ref, "allocated_block")
} }
comment("window jump table") comment("window jump table")
@ -554,16 +535,6 @@ define(0x00000C14U, "destroy_window") {
parameter(Byte.ref, "window_struct") parameter(Byte.ref, "window_struct")
} }
define(0x00000C18U, "new_window_event") { define(0x00000C18U, "new_window_event") {
parameter(Word, "event_type")
parameter(Word, "parameter0")
parameter(Word, "parameter1")
parameter(Word, "parameter2")
parameter(Word, "parameter3")
parameter(Word, "parameter4")
parameter(Word, "parameter5")
parameter(Word, "parameter6")
parameter(Word, "parameter7")
parameter(Byte.ref, "window_struct")
} }
define(0x00000C1CU, "get_next_window_event") { define(0x00000C1CU, "get_next_window_event") {
parameter(Byte.ref, "window_struct") parameter(Byte.ref, "window_struct")
@ -596,54 +567,29 @@ define(0x00000C30U, "start_dragging_window") {
parameter(Byte.ref, "window_struct") parameter(Byte.ref, "window_struct")
} }
define(0x00000C34U, "new_messagebox") { define(0x00000C34U, "new_messagebox") {
parameter(IByte.ref, "first_line_str")
parameter(IByte.ref, "second_line_str")
parameter(IByte.ref, "third_line_str")
parameter(Half, "x")
parameter(Half, "y")
parameter(Half, "width")
} }
define(0x00000C38U, "get_active_window_struct") { define(0x00000C38U, "get_active_window_struct") {
returns(Byte.ref) returns(Word.ref)
} }
comment("VFS jump table") comment("VFS jump table")
define(0x00000D10U, "open") { define(0x00000D10U, "open") {
parameter(IByte.ref, "file_name")
parameter(Byte, "disk_id")
parameter(Byte.ref, "file_struct")
returns(Half)
} }
define(0x00000D14U, "seek") { define(0x00000D14U, "seek") {
parameter(Word, "offset")
parameter(Byte.ref, "file_struct")
} }
define(0x00000D18U, "tell") { define(0x00000D18U, "tell") {
parameter(Byte.ref, "file_struct")
returns(Word)
} }
define(0x00000D1CU, "read") { define(0x00000D1CU, "read") {
parameter(Word, "bytes_to_read")
parameter(Byte.ref, "file_struct")
parameter(Byte.ref, "destination_buffer")
returns(Word)
} }
define(0x00000D20U, "write") { define(0x00000D20U, "write") {
parameter(Word, "bytes_to_write")
parameter(Byte.ref, "file_struct")
parameter(Byte.ref, "source_buffer")
} }
comment("widget jump table") comment("widget jump table")
define(0x00000E10U, "draw_widgets_to_window") { define(0x00000E10U, "draw_widgets_to_window") {
parameter(Byte.ref, "window_struct")
} }
define(0x00000E14U, "handle_widget_click") { define(0x00000E14U, "handle_widget_click") {
parameter(Byte.ref, "window_struct")
parameter(Half, "x")
parameter(Half, "y")
} }
comment("event types") comment("event types")

View File

@ -36,7 +36,7 @@ class GCC(Flavor):
@classmethod @classmethod
def invoke(self, command, c_file, s_file): def invoke(self, command, c_file, s_file):
run([command, '-march=rv32im', '-mabi=ilp32', '-O0', '-S', c_file, '-o', s_file]) run([command, '-march=rv32im', '-mabi=ilp32', '-Os', '-S', c_file, '-o', s_file])
class GPlusPlus(GCC): class GPlusPlus(GCC):
basename = 'g++' basename = 'g++'

View File

@ -66,7 +66,7 @@ class Emitter:
Emit data Emit data
""" """
for d in data: for d in data:
self.write(f'data.{size} {self._adjust_label(self._adjust_operand(d))}') self.write(f'data.{size} {self._adjust_label(d)}')
def zero(self, *data): def zero(self, *data):
""" """
@ -158,7 +158,7 @@ class Converter:
self.xregidx = { r: i for i, r in enumerate(self.xregs) } self.xregidx = { r: i for i, r in enumerate(self.xregs) }
self.tmp = 'rfp' # temporary register self.tmp = 'rfp' # temporary register
self.branches = ['bge', 'bgeu', 'bgt', 'bgtu', 'blt', 'bltu', 'ble', 'bleu', 'bne', 'bneu', 'beq'] self.branches = ['bge', 'bgeu', 'bgt', 'bgtu', 'blt', 'bltu', 'ble', 'bleu', 'bne', 'bneu']
self.label_gen = iter(range(1000000)) self.label_gen = iter(range(1000000))
@ -193,14 +193,12 @@ class Converter:
pass # ignore pass # ignore
elif m := re.fullmatch(r'word\s+([^\s]+)', line): elif m := re.fullmatch(r'word\s+([^\s]+)', line):
self.e.data(*m.groups()) self.e.data(*m.groups())
elif m := re.fullmatch(r'half\s+([^\s]+)', line):
self.e.data(*m.groups(), size=16)
elif m := re.fullmatch(r'byte\s+([^\s]+)', line):
self.e.data(*m.groups(), size=8)
elif m := re.fullmatch(r'4byte\s+([^\s]+)', line): elif m := re.fullmatch(r'4byte\s+([^\s]+)', line):
self.e.data(*m.groups()) self.e.data(*m.groups())
elif m := re.fullmatch(r'zero\s+([^\s]+)', line): elif m := re.fullmatch(r'zero\s+([^\s]+)', line):
self.e.zero(*m.groups()) self.e.zero(*m.groups())
elif m := re.fullmatch(r'byte\s+([^\s]+)', line):
self.e.zero(*m.groups())
elif m := re.fullmatch(r'string\s+\"(.*)\"', line): elif m := re.fullmatch(r'string\s+\"(.*)\"', line):
self.e.strz(*m.groups()) self.e.strz(*m.groups())
elif m := re.fullmatch(r'asciz\s+\"(.*)\"', line): elif m := re.fullmatch(r'asciz\s+\"(.*)\"', line):
@ -244,7 +242,6 @@ class Converter:
def convert_condition(op): def convert_condition(op):
if op in ['blt', 'bltu']: return 'iflt', False if op in ['blt', 'bltu']: return 'iflt', False
if op in ['bne', 'bnez']: return 'ifnz', False if op in ['bne', 'bnez']: return 'ifnz', False
if op in ['beq', 'beqz']: return 'ifz', False
if op in ['ble', 'bleu']: return 'ifgt', True if op in ['ble', 'bleu']: return 'ifgt', True
if op in ['bge', 'bgeu']: return 'ifgteq', False if op in ['bge', 'bgeu']: return 'ifgteq', False
if op in ['bgt', 'bgtu']: return 'ifgt', False if op in ['bgt', 'bgtu']: return 'ifgt', False

833
gfx2inc/Cargo.lock generated
View File

@ -8,12 +8,30 @@ version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
[[package]]
name = "adler32"
version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "aae1277d39aeec15cb388266ecc24b11c80469deae6067e17a1a7aa9e5c1f234"
[[package]]
name = "anyhow"
version = "1.0.58"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bb07d2053ccdbe10e2af2995a2f116c1330396493dc1269f6a91d0ae82e19704"
[[package]] [[package]]
name = "autocfg" name = "autocfg"
version = "1.1.0" version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
[[package]]
name = "bit_field"
version = "0.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dcb6dd1c2376d2e096796e234a70e17e94cc2d5d54ff8ce42b28cef1d0d359a4"
[[package]] [[package]]
name = "bitflags" name = "bitflags"
version = "1.3.2" version = "1.3.2"
@ -21,16 +39,31 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
[[package]] [[package]]
name = "bytemuck" name = "bumpalo"
version = "1.14.1" version = "3.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ed2490600f404f2b94c167e31d3ed1d5f3c225a0f3b80230053b3e0b7b962bd9" checksum = "37ccbd214614c6783386c1af30caf03192f17891059cecc394b4fb119e363de3"
[[package]]
name = "bytemuck"
version = "1.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cdead85bdec19c194affaeeb670c0e41fe23de31459efd1c174d049269cf02cc"
[[package]] [[package]]
name = "byteorder" name = "byteorder"
version = "1.5.0" version = "1.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610"
[[package]]
name = "cc"
version = "1.0.73"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11"
dependencies = [
"jobserver",
]
[[package]] [[package]]
name = "cfg-if" name = "cfg-if"
@ -38,6 +71,19 @@ version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "chrono"
version = "0.4.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "670ad68c9088c2a963aaa298cb369688cf3f9465ce5e2d4ca10e6e0098a1ce73"
dependencies = [
"libc",
"num-integer",
"num-traits",
"time",
"winapi",
]
[[package]] [[package]]
name = "color_quant" name = "color_quant"
version = "1.1.0" version = "1.1.0"
@ -54,78 +100,807 @@ dependencies = [
] ]
[[package]] [[package]]
name = "fdeflate" name = "crossbeam-channel"
version = "0.3.4" version = "0.5.5"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4f9bfee30e4dedf0ab8b422f03af778d9612b63f502710fc500a334ebe2de645" checksum = "4c02a4d71819009c192cf4872265391563fd6a84c81ff2c0f2a7026ca4c1d85c"
dependencies = [ dependencies = [
"simd-adler32", "cfg-if",
"crossbeam-utils",
]
[[package]]
name = "crossbeam-deque"
version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6455c0ca19f0d2fbf751b908d5c55c1f5cbc65e03c4225427254b46890bdde1e"
dependencies = [
"cfg-if",
"crossbeam-epoch",
"crossbeam-utils",
]
[[package]]
name = "crossbeam-epoch"
version = "0.9.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "07db9d94cbd326813772c968ccd25999e5f8ae22f4f8d1b11effa37ef6ce281d"
dependencies = [
"autocfg",
"cfg-if",
"crossbeam-utils",
"memoffset",
"once_cell",
"scopeguard",
]
[[package]]
name = "crossbeam-utils"
version = "0.8.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7d82ee10ce34d7bc12c2122495e7593a9c41347ecdd64185af4ecf72cb1a7f83"
dependencies = [
"cfg-if",
"once_cell",
]
[[package]]
name = "deflate"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c86f7e25f518f4b81808a2cf1c50996a61f5c2eb394b2393bd87f2a4780a432f"
dependencies = [
"adler32",
]
[[package]]
name = "either"
version = "1.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457"
[[package]]
name = "enum-iterator"
version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2953d1df47ac0eb70086ccabf0275aa8da8591a28bd358ee2b52bd9f9e3ff9e9"
dependencies = [
"enum-iterator-derive",
]
[[package]]
name = "enum-iterator-derive"
version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8958699f9359f0b04e691a13850d48b7de329138023876d07cbd024c2c820598"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "exr"
version = "1.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "14cc0e06fb5f67e5d6beadf3a382fec9baca1aa751c6d5368fdeee7e5932c215"
dependencies = [
"bit_field",
"deflate",
"flume",
"half",
"inflate",
"lebe",
"smallvec",
"threadpool",
] ]
[[package]] [[package]]
name = "flate2" name = "flate2"
version = "1.0.28" version = "1.0.24"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "46303f565772937ffe1d394a4fac6f411c6013172fadde9dcdb1e147a086940e" checksum = "f82b0f4c27ad9f8bfd1f3208d882da2b09c301bc1c828fd3a00d0216d2fbbff6"
dependencies = [ dependencies = [
"crc32fast", "crc32fast",
"miniz_oxide", "miniz_oxide",
] ]
[[package]]
name = "flume"
version = "0.10.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1ceeb589a3157cac0ab8cc585feb749bd2cea5cb55a6ee802ad72d9fd38303da"
dependencies = [
"futures-core",
"futures-sink",
"nanorand",
"pin-project",
"spin",
]
[[package]]
name = "form_urlencoded"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191"
dependencies = [
"matches",
"percent-encoding",
]
[[package]]
name = "futures-core"
version = "0.3.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0c09fd04b7e4073ac7156a9539b57a484a8ea920f79c7c675d05d289ab6110d3"
[[package]]
name = "futures-sink"
version = "0.3.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "21163e139fa306126e6eedaf49ecdb4588f939600f0b1e770f4205ee4b7fa868"
[[package]]
name = "getrandom"
version = "0.2.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4eb1a864a501629691edf6c15a593b7a51eebaa1e8468e9ddc623de7c9b58ec6"
dependencies = [
"cfg-if",
"js-sys",
"libc",
"wasi 0.11.0+wasi-snapshot-preview1",
"wasm-bindgen",
]
[[package]]
name = "getset"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e45727250e75cc04ff2846a66397da8ef2b3db8e40e0cef4df67950a07621eb9"
dependencies = [
"proc-macro-error",
"proc-macro2",
"quote",
"syn",
]
[[package]] [[package]]
name = "gfx2inc" name = "gfx2inc"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"anyhow",
"image", "image",
"vergen",
]
[[package]]
name = "gif"
version = "0.11.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c3a7187e78088aead22ceedeee99779455b23fc231fe13ec443f99bb71694e5b"
dependencies = [
"color_quant",
"weezl",
]
[[package]]
name = "git2"
version = "0.14.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d0155506aab710a86160ddb504a480d2964d7ab5b9e62419be69e0032bc5931c"
dependencies = [
"bitflags",
"libc",
"libgit2-sys",
"log",
"url",
]
[[package]]
name = "half"
version = "1.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eabb4a44450da02c90444cf74558da904edde8fb4e9035a9a6a4e15445af0bd7"
[[package]]
name = "hermit-abi"
version = "0.1.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
dependencies = [
"libc",
]
[[package]]
name = "idna"
version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8"
dependencies = [
"matches",
"unicode-bidi",
"unicode-normalization",
] ]
[[package]] [[package]]
name = "image" name = "image"
version = "0.24.8" version = "0.24.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "034bbe799d1909622a74d1193aa50147769440040ff36cb2baa947609b0a4e23" checksum = "28edd9d7bc256be2502e325ac0628bde30b7001b9b52e0abe31a1a9dc2701212"
dependencies = [ dependencies = [
"bytemuck", "bytemuck",
"byteorder", "byteorder",
"color_quant", "color_quant",
"exr",
"gif",
"jpeg-decoder",
"num-iter",
"num-rational",
"num-traits", "num-traits",
"png", "png",
"scoped_threadpool",
"tiff",
] ]
[[package]] [[package]]
name = "miniz_oxide" name = "inflate"
version = "0.7.1" version = "0.4.5"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e7810e0be55b428ada41041c41f32c9f1a42817901b4ccf45fa3d4b6561e74c7" checksum = "1cdb29978cc5797bd8dcc8e5bf7de604891df2a8dc576973d71a281e916db2ff"
dependencies = [ dependencies = [
"adler", "adler32",
"simd-adler32",
] ]
[[package]] [[package]]
name = "num-traits" name = "jobserver"
version = "0.2.17" version = "0.1.24"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "39e3200413f237f41ab11ad6d161bc7239c84dcb631773ccd7de3dfe4b5c267c" checksum = "af25a77299a7f711a01975c35a6a424eb6862092cc2d6c72c4ed6cbc56dfc1fa"
dependencies = [
"libc",
]
[[package]]
name = "jpeg-decoder"
version = "0.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9478aa10f73e7528198d75109c8be5cd7d15fb530238040148d5f9a22d4c5b3b"
dependencies = [
"rayon",
]
[[package]]
name = "js-sys"
version = "0.3.58"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c3fac17f7123a73ca62df411b1bf727ccc805daa070338fda671c86dac1bdc27"
dependencies = [
"wasm-bindgen",
]
[[package]]
name = "lazy_static"
version = "1.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
[[package]]
name = "lebe"
version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7efd1d698db0759e6ef11a7cd44407407399a910c774dd804c64c032da7826ff"
[[package]]
name = "libc"
version = "0.2.126"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836"
[[package]]
name = "libgit2-sys"
version = "0.13.4+1.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d0fa6563431ede25f5cc7f6d803c6afbc1c5d3ad3d4925d12c882bf2b526f5d1"
dependencies = [
"cc",
"libc",
"libz-sys",
"pkg-config",
]
[[package]]
name = "libz-sys"
version = "1.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9702761c3935f8cc2f101793272e202c72b99da8f4224a19ddcf1279a6450bbf"
dependencies = [
"cc",
"libc",
"pkg-config",
"vcpkg",
]
[[package]]
name = "lock_api"
version = "0.4.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "327fa5b6a6940e4699ec49a9beae1ea4845c6bab9314e4f84ac68742139d8c53"
dependencies = [
"autocfg",
"scopeguard",
]
[[package]]
name = "log"
version = "0.4.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e"
dependencies = [
"cfg-if",
]
[[package]]
name = "matches"
version = "0.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f"
[[package]]
name = "memoffset"
version = "0.6.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce"
dependencies = [ dependencies = [
"autocfg", "autocfg",
] ]
[[package]] [[package]]
name = "png" name = "miniz_oxide"
version = "0.17.11" version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1f6c3c3e617595665b8ea2ff95a86066be38fb121ff920a9c0eb282abcd1da5a" checksum = "6f5c75688da582b8ffc1f1799e9db273f32133c49e048f614d22ec3256773ccc"
dependencies = [
"adler",
]
[[package]]
name = "nanorand"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6a51313c5820b0b02bd422f4b44776fbf47961755c74ce64afc73bfad10226c3"
dependencies = [
"getrandom",
]
[[package]]
name = "num-integer"
version = "0.1.45"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "225d3389fb3509a24c93f5c29eb6bde2586b98d9f016636dff58d7c6f7569cd9"
dependencies = [
"autocfg",
"num-traits",
]
[[package]]
name = "num-iter"
version = "0.1.43"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7d03e6c028c5dc5cac6e2dec0efda81fc887605bb3d884578bb6d6bf7514e252"
dependencies = [
"autocfg",
"num-integer",
"num-traits",
]
[[package]]
name = "num-rational"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0638a1c9d0a3c0914158145bc76cff373a75a627e6ecbfb71cbe6f453a5a19b0"
dependencies = [
"autocfg",
"num-integer",
"num-traits",
]
[[package]]
name = "num-traits"
version = "0.2.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd"
dependencies = [
"autocfg",
]
[[package]]
name = "num_cpus"
version = "1.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "19e64526ebdee182341572e50e9ad03965aa510cd94427a4549448f285e957a1"
dependencies = [
"hermit-abi",
"libc",
]
[[package]]
name = "once_cell"
version = "1.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7709cef83f0c1f58f666e746a08b21e0085f7440fa6a29cc194d68aac97a4225"
[[package]]
name = "percent-encoding"
version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e"
[[package]]
name = "pin-project"
version = "1.0.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "58ad3879ad3baf4e44784bc6a718a8698867bb991f8ce24d1bcbe2cfb4c3a75e"
dependencies = [
"pin-project-internal",
]
[[package]]
name = "pin-project-internal"
version = "1.0.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "744b6f092ba29c3650faf274db506afd39944f48420f6c86b17cfe0ee1cb36bb"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "pkg-config"
version = "0.3.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1df8c4ec4b0627e53bdf214615ad287367e482558cf84b109250b37464dc03ae"
[[package]]
name = "png"
version = "0.17.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dc38c0ad57efb786dd57b9864e5b18bae478c00c824dc55a38bbc9da95dde3ba"
dependencies = [ dependencies = [
"bitflags", "bitflags",
"crc32fast", "crc32fast",
"fdeflate", "deflate",
"flate2",
"miniz_oxide", "miniz_oxide",
] ]
[[package]] [[package]]
name = "simd-adler32" name = "proc-macro-error"
version = "0.3.7" version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe" checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
dependencies = [
"proc-macro-error-attr",
"proc-macro2",
"quote",
"syn",
"version_check",
]
[[package]]
name = "proc-macro-error-attr"
version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
dependencies = [
"proc-macro2",
"quote",
"version_check",
]
[[package]]
name = "proc-macro2"
version = "1.0.40"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dd96a1e8ed2596c337f8eae5f24924ec83f5ad5ab21ea8e455d3566c69fbcaf7"
dependencies = [
"unicode-ident",
]
[[package]]
name = "quote"
version = "1.0.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3bcdf212e9776fbcb2d23ab029360416bb1706b1aea2d1a5ba002727cbcab804"
dependencies = [
"proc-macro2",
]
[[package]]
name = "rayon"
version = "1.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bd99e5772ead8baa5215278c9b15bf92087709e9c1b2d1f97cdb5a183c933a7d"
dependencies = [
"autocfg",
"crossbeam-deque",
"either",
"rayon-core",
]
[[package]]
name = "rayon-core"
version = "1.9.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "258bcdb5ac6dad48491bb2992db6b7cf74878b0384908af124823d118c99683f"
dependencies = [
"crossbeam-channel",
"crossbeam-deque",
"crossbeam-utils",
"num_cpus",
]
[[package]]
name = "rustversion"
version = "1.0.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a0a5f7c728f5d284929a1cccb5bc19884422bfe6ef4d6c409da2c41838983fcf"
[[package]]
name = "scoped_threadpool"
version = "0.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1d51f5df5af43ab3f1360b429fa5e0152ac5ce8c0bd6485cae490332e96846a8"
[[package]]
name = "scopeguard"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd"
[[package]]
name = "smallvec"
version = "1.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cc88c725d61fc6c3132893370cac4a0200e3fedf5da8331c570664b1987f5ca2"
[[package]]
name = "spin"
version = "0.9.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c530c2b0d0bf8b69304b39fe2001993e267461948b890cd037d8ad4293fa1a0d"
dependencies = [
"lock_api",
]
[[package]]
name = "syn"
version = "1.0.98"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c50aef8a904de4c23c788f104b7dddc7d6f79c647c7c8ce4cc8f73eb0ca773dd"
dependencies = [
"proc-macro2",
"quote",
"unicode-ident",
]
[[package]]
name = "thiserror"
version = "1.0.31"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bd829fe32373d27f76265620b5309d0340cb8550f523c1dda251d6298069069a"
dependencies = [
"thiserror-impl",
]
[[package]]
name = "thiserror-impl"
version = "1.0.31"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0396bc89e626244658bef819e22d0cc459e795a5ebe878e6ec336d1674a8d79a"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "threadpool"
version = "1.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d050e60b33d41c19108b32cea32164033a9013fe3b46cbd4457559bfbf77afaa"
dependencies = [
"num_cpus",
]
[[package]]
name = "tiff"
version = "0.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7cfada0986f446a770eca461e8c6566cb879682f7d687c8348aa0c857bd52286"
dependencies = [
"flate2",
"jpeg-decoder",
"weezl",
]
[[package]]
name = "time"
version = "0.1.44"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255"
dependencies = [
"libc",
"wasi 0.10.0+wasi-snapshot-preview1",
"winapi",
]
[[package]]
name = "tinyvec"
version = "1.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50"
dependencies = [
"tinyvec_macros",
]
[[package]]
name = "tinyvec_macros"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c"
[[package]]
name = "unicode-bidi"
version = "0.3.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "099b7128301d285f79ddd55b9a83d5e6b9e97c92e0ea0daebee7263e932de992"
[[package]]
name = "unicode-ident"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5bd2fe26506023ed7b5e1e315add59d6f584c621d037f9368fea9cfb988f368c"
[[package]]
name = "unicode-normalization"
version = "0.1.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "81dee68f85cab8cf68dec42158baf3a79a1cdc065a8b103025965d6ccb7f6cbd"
dependencies = [
"tinyvec",
]
[[package]]
name = "url"
version = "2.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a507c383b2d33b5fc35d1861e77e6b383d158b2da5e14fe51b83dfedf6fd578c"
dependencies = [
"form_urlencoded",
"idna",
"matches",
"percent-encoding",
]
[[package]]
name = "vcpkg"
version = "0.2.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
[[package]]
name = "vergen"
version = "6.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3893329bee75c101278e0234b646fa72221547d63f97fb66ac112a0569acd110"
dependencies = [
"anyhow",
"cfg-if",
"chrono",
"enum-iterator",
"getset",
"git2",
"rustversion",
"thiserror",
]
[[package]]
name = "version_check"
version = "0.9.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
[[package]]
name = "wasi"
version = "0.10.0+wasi-snapshot-preview1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f"
[[package]]
name = "wasi"
version = "0.11.0+wasi-snapshot-preview1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
[[package]]
name = "wasm-bindgen"
version = "0.2.81"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7c53b543413a17a202f4be280a7e5c62a1c69345f5de525ee64f8cfdbc954994"
dependencies = [
"cfg-if",
"wasm-bindgen-macro",
]
[[package]]
name = "wasm-bindgen-backend"
version = "0.2.81"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5491a68ab4500fa6b4d726bd67408630c3dbe9c4fe7bda16d5c82a1fd8c7340a"
dependencies = [
"bumpalo",
"lazy_static",
"log",
"proc-macro2",
"quote",
"syn",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-macro"
version = "0.2.81"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c441e177922bc58f1e12c022624b6216378e5febc2f0533e41ba443d505b80aa"
dependencies = [
"quote",
"wasm-bindgen-macro-support",
]
[[package]]
name = "wasm-bindgen-macro-support"
version = "0.2.81"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7d94ac45fcf608c1f45ef53e748d35660f168490c10b23704c7779ab8f5c3048"
dependencies = [
"proc-macro2",
"quote",
"syn",
"wasm-bindgen-backend",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-shared"
version = "0.2.81"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6a89911bd99e5f3659ec4acf9c4d93b0a90fe4a2a11f15328472058edc5261be"
[[package]]
name = "weezl"
version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9c97e489d8f836838d497091de568cf16b117486d529ec5579233521065bd5e4"
[[package]]
name = "winapi"
version = "0.3.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
dependencies = [
"winapi-i686-pc-windows-gnu",
"winapi-x86_64-pc-windows-gnu",
]
[[package]]
name = "winapi-i686-pc-windows-gnu"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
[[package]]
name = "winapi-x86_64-pc-windows-gnu"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"

View File

@ -4,4 +4,8 @@ version = "0.1.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
image = { version = "0.24.2", default-features = false, features = ["png"] } image = "0.24.2"
[build-dependencies]
anyhow = "1.0"
vergen = { version = "6", default-features = false, features = ["build", "git"] }

8
gfx2inc/build.rs Normal file
View File

@ -0,0 +1,8 @@
use anyhow::Result;
use vergen::{Config, ShaKind, vergen};
fn main() -> Result<()> {
let mut config = Config::default();
*config.git_mut().sha_kind_mut() = ShaKind::Short;
vergen(config)
}

View File

@ -8,10 +8,7 @@ use image::{DynamicImage, GenericImageView, Pixel};
use image::io::Reader as ImageReader; use image::io::Reader as ImageReader;
fn main() { fn main() {
let version_string = match (option_env!("NIX_SEMVER"), option_env!("NIX_GIT_SHA_SHORT")) { let version_string = format!("gfx2inc {} ({})", env!("VERGEN_BUILD_SEMVER"), env!("VERGEN_GIT_SHA_SHORT"));
(Some(semver), Some(sha)) => format!("gfx2inc {semver} ({sha})"),
_ => format!("fox32asm (dev)"),
};
println!("{}", version_string); println!("{}", version_string);
let args: Vec<String> = env::args().collect(); let args: Vec<String> = env::args().collect();