-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting tons of errors when building the examples #4
Comments
I acknowledge there are millions of bugs on arch linux too. error[E0425]: cannot find function `ulConfigSetEnableImages` in crate `ul_sys`
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/config.rs:50:49
|
50 | set_config!(config, self, enableImages, ulConfigSetEnableImages);
| ^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `ulViewConfigSetEnableImages`
|
::: /home/nesanya/1/streaming/target/debug/build/ul-sys-18e9239eb6c1a256/out/bindings.rs:3156:5
|
3156 | pub fn ulViewConfigSetEnableImages(config: ULViewConfig, enabled: bool);
| ------------------------------------------------------------------------ similarly named function `ulViewConfigSetEnableImages` defined here
error[E0425]: cannot find function `ulConfigSetEnableJavaScript` in crate `ul_sys`
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/config.rs:51:53
|
51 | set_config!(config, self, enableJavaScript, ulConfigSetEnableJavaScript);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `ulViewConfigSetEnableJavaScript`
|
::: /home/nesanya/1/streaming/target/debug/build/ul-sys-18e9239eb6c1a256/out/bindings.rs:3162:5
|
3162 | pub fn ulViewConfigSetEnableJavaScript(config: ULViewConfig, enabled: bool);
| ---------------------------------------------------------------------------- similarly named function `ulViewConfigSetEnableJavaScript` defined here
error[E0425]: cannot find function `ulConfigSetUseBGRAForOffscreenRendering` in crate `ul_sys`
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/config.rs:53:65
|
53 | set_config!(config, self, useBGRAForOffscreenRendering, ulConfigSetUseBGRAForOffscreenRendering);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `ul_sys`
error[E0425]: cannot find function `ulConfigSetDeviceScaleHint` in crate `ul_sys`
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/config.rs:56:52
|
56 | set_config!(config, self, deviceScaleHint, ulConfigSetDeviceScaleHint);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `ul_sys`
error[E0425]: cannot find function `ulConfigSetFontFamilyStandard` in crate `ul_sys`
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/config.rs:61:59
|
61 | set_config_str!(config, self, fontFamilyStandard, ulConfigSetFontFamilyStandard);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `ulViewConfigSetFontFamilyStandard`
|
::: /home/nesanya/1/streaming/target/debug/build/ul-sys-18e9239eb6c1a256/out/bindings.rs:3168:5
|
3168 | pub fn ulViewConfigSetFontFamilyStandard(config: ULViewConfig, font_name: ULString);
| ------------------------------------------------------------------------------------ similarly named function `ulViewConfigSetFontFamilyStandard` defined here
error[E0425]: cannot find function `ulConfigSetFontFamilyFixed` in crate `ul_sys`
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/config.rs:62:56
|
62 | set_config_str!(config, self, fontFamilyFixed, ulConfigSetFontFamilyFixed);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `ulViewConfigSetFontFamilyFixed`
|
::: /home/nesanya/1/streaming/target/debug/build/ul-sys-18e9239eb6c1a256/out/bindings.rs:3175:5
|
3175 | pub fn ulViewConfigSetFontFamilyFixed(config: ULViewConfig, font_name: ULString);
| --------------------------------------------------------------------------------- similarly named function `ulViewConfigSetFontFamilyFixed` defined here
error[E0425]: cannot find function `ulConfigSetFontFamilySerif` in crate `ul_sys`
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/config.rs:63:56
|
63 | set_config_str!(config, self, fontFamilySerif, ulConfigSetFontFamilySerif);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `ulViewConfigSetFontFamilySerif`
|
::: /home/nesanya/1/streaming/target/debug/build/ul-sys-18e9239eb6c1a256/out/bindings.rs:3181:5
|
3181 | pub fn ulViewConfigSetFontFamilySerif(config: ULViewConfig, font_name: ULString);
| --------------------------------------------------------------------------------- similarly named function `ulViewConfigSetFontFamilySerif` defined here
error[E0425]: cannot find function `ulConfigSetFontFamilySansSerif` in crate `ul_sys`
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/config.rs:64:60
|
64 | set_config_str!(config, self, fontFamilySansSerif, ulConfigSetFontFamilySansSerif);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `ulViewConfigSetFontFamilySansSerif`
|
::: /home/nesanya/1/streaming/target/debug/build/ul-sys-18e9239eb6c1a256/out/bindings.rs:3187:5
|
3187 | pub fn ulViewConfigSetFontFamilySansSerif(config: ULViewConfig, font_name: ULString);
| ------------------------------------------------------------------------------------- similarly named function `ulViewConfigSetFontFamilySansSerif` defined here
error[E0425]: cannot find function `ulConfigSetUserAgent` in crate `ul_sys`
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/config.rs:65:50
|
65 | set_config_str!(config, self, userAgent, ulConfigSetUserAgent);
| ^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `ulViewConfigSetUserAgent`
|
::: /home/nesanya/1/streaming/target/debug/build/ul-sys-18e9239eb6c1a256/out/bindings.rs:3193:5
|
3193 | pub fn ulViewConfigSetUserAgent(config: ULViewConfig, agent_string: ULString);
| ------------------------------------------------------------------------------ similarly named function `ulViewConfigSetUserAgent` defined here
error[E0425]: cannot find function `ulViewGetJSContext` in crate `ul_sys`
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/helpers.rs:65:30
|
65 | let jsgctx = ul_sys::ulViewGetJSContext(view);
| ^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `ulViewLockJSContext`
|
::: /home/nesanya/1/streaming/target/debug/build/ul-sys-18e9239eb6c1a256/out/bindings.rs:3307:5
|
3307 | pub fn ulViewLockJSContext(view: ULView) -> JSContextRef;
| --------------------------------------------------------- similarly named function `ulViewLockJSContext` defined here
error[E0425]: cannot find function `ulAppSetWindow` in crate `ul_sys`
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/lib.rs:185:21
|
185 | ul_sys::ulAppSetWindow(self.app, window);
| ^^^^^^^^^^^^^^ not found in `ul_sys`
error[E0425]: cannot find function `ulWindowDeviceToPixel` in crate `ul_sys`
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/lib.rs:303:29
|
303 | unsafe { Ok(ul_sys::ulWindowDeviceToPixel(self.window.ok_or(NoneError {})?, val)) }
| ^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `ulWindowScreenToPixels`
|
::: /home/nesanya/1/streaming/target/debug/build/ul-sys-18e9239eb6c1a256/out/bindings.rs:6044:5
|
6044 | / pub fn ulWindowScreenToPixels(
6045 | | window: ULWindow,
6046 | | val: ::std::os::raw::c_int,
6047 | | ) -> ::std::os::raw::c_int;
| |_______________________________- similarly named function `ulWindowScreenToPixels` defined here
error[E0425]: cannot find function `ulWindowPixelsToDevice` in crate `ul_sys`
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/lib.rs:307:29
|
307 | unsafe { Ok(ul_sys::ulWindowPixelsToDevice(self.window.ok_or(NoneError {})?, val)) }
| ^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `ulWindowPixelsToScreen`
|
::: /home/nesanya/1/streaming/target/debug/build/ul-sys-18e9239eb6c1a256/out/bindings.rs:6053:5
|
6053 | / pub fn ulWindowPixelsToScreen(
6054 | | window: ULWindow,
6055 | | val: ::std::os::raw::c_int,
6056 | | ) -> ::std::os::raw::c_int;
| |_______________________________- similarly named function `ulWindowPixelsToScreen` defined here
error[E0425]: cannot find function `ulViewGetBitmap` in crate `ul_sys`
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/lib.rs:564:38
|
564 | let bitmap_obj = ul_sys::ulViewGetBitmap(self.view.ok_or(NoneError {})?);
| ^^^^^^^^^^^^^^^ help: a function with a similar name exists: `ulViewGetTitle`
|
::: /home/nesanya/1/streaming/target/debug/build/ul-sys-18e9239eb6c1a256/out/bindings.rs:3229:5
|
3229 | pub fn ulViewGetTitle(view: ULView) -> ULString;
| ------------------------------------------------ similarly named function `ulViewGetTitle` defined here
error[E0425]: cannot find function `ulViewGetBitmap` in crate `ul_sys`
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/lib.rs:579:38
|
579 | let bitmap_obj = ul_sys::ulViewGetBitmap(self.view.ok_or(NoneError {})?);
| ^^^^^^^^^^^^^^^ help: a function with a similar name exists: `ulViewGetTitle`
|
::: /home/nesanya/1/streaming/target/debug/build/ul-sys-18e9239eb6c1a256/out/bindings.rs:3229:5
|
3229 | pub fn ulViewGetTitle(view: ULView) -> ULString;
| ------------------------------------------------ similarly named function `ulViewGetTitle` defined here
error[E0308]: mismatched types
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/lib.rs:360:22
|
360 | Some(cb_function),
| ^^^^^^^^^^^ incorrect number of function parameters
|
= note: expected fn pointer `unsafe extern "C" fn(*mut c_void, *mut C_Window)`
found fn pointer `unsafe extern "C" fn(*mut c_void)`
error[E0308]: mismatched types
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/lib.rs:374:22
|
374 | Some(cb_function),
| ^^^^^^^^^^^ incorrect number of function parameters
|
= note: expected fn pointer `unsafe extern "C" fn(*mut c_void, *mut C_Window, u32, u32)`
found fn pointer `unsafe extern "C" fn(*mut c_void, u32, u32)`
error[E0061]: this function takes 5 arguments but 4 arguments were supplied
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/lib.rs:422:30
|
422 | self.view = Some(ul_sys::ulCreateView(self.renderer, width, height, transparent));
| ^^^^^^^^^^^^^^^^^^^^ ------------- ----- ------ ----------- supplied 4 arguments
| |
| expected 5 arguments
|
note: function defined here
--> /home/nesanya/1/streaming/target/debug/build/ul-sys-18e9239eb6c1a256/out/bindings.rs:3201:12
|
3201 | pub fn ulCreateView(
| ^^^^^^^^^^^^
error[E0308]: mismatched types
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/lib.rs:505:63
|
505 | ul_sys::ulViewSetFinishLoadingCallback(view, Some(cb_function), cb_closure);
| ^^^^^^^^^^^ incorrect number of function parameters
|
= note: expected fn pointer `unsafe extern "C" fn(*mut c_void, *mut C_View, u64, bool, *mut C_String)`
found fn pointer `unsafe extern "C" fn(*mut c_void, *mut C_View)`
error[E0308]: mismatched types
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/lib.rs:520:58
|
520 | ul_sys::ulViewSetDOMReadyCallback(view, Some(cb_function), cb_closure);
| ^^^^^^^^^^^ incorrect number of function parameters
|
= note: expected fn pointer `unsafe extern "C" fn(*mut c_void, *mut C_View, u64, bool, *mut C_String)`
found fn pointer `unsafe extern "C" fn(*mut c_void, *mut C_View)`
error[E0308]: mismatched types
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/lib.rs:569:80
|
569 | let bitmap_raw = std::slice::from_raw_parts_mut(bitmap as *mut u8, bitmap_size);
| ^^^^^^^^^^^ expected `usize`, found `u64`
|
help: you can convert a `u64` to a `usize` and panic if the converted value doesn't fit
|
569 | let bitmap_raw = std::slice::from_raw_parts_mut(bitmap as *mut u8, bitmap_size.try_into().unwrap());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/lib.rs:584:80
|
584 | let bitmap_raw = std::slice::from_raw_parts_mut(bitmap as *mut u8, bitmap_size);
| ^^^^^^^^^^^ expected `usize`, found `u64`
|
help: you can convert a `u64` to a `usize` and panic if the converted value doesn't fit
|
584 | let bitmap_raw = std::slice::from_raw_parts_mut(bitmap as *mut u8, bitmap_size.try_into().unwrap());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0560]: struct `JSClassDefinition` has no field named `staticValues`
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/helpers.rs:30:13
|
30 | staticValues: std::ptr::null() as *const ul_sys::JSStaticValue,
| ^^^^^^^^^^^^ `JSClassDefinition` does not have this field
|
= note: available fields are: `version`, `attributes`, `className`, `parentClass`, `__bindgen_anon_1`, `privateData`
error[E0560]: struct `JSClassDefinition` has no field named `staticFunctions`
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/helpers.rs:31:13
|
31 | staticFunctions: std::ptr::null() as *const ul_sys::JSStaticFunction,
| ^^^^^^^^^^^^^^^ `JSClassDefinition` does not have this field
|
= note: available fields are: `version`, `attributes`, `className`, `parentClass`, `__bindgen_anon_1`, `privateData`
error[E0560]: struct `JSClassDefinition` has no field named `initialize`
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/helpers.rs:32:13
|
32 | initialize: None,
| ^^^^^^^^^^ `JSClassDefinition` does not have this field
|
= note: available fields are: `version`, `attributes`, `className`, `parentClass`, `__bindgen_anon_1`, `privateData`
error[E0560]: struct `JSClassDefinition` has no field named `hasProperty`
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/helpers.rs:33:13
|
33 | hasProperty: None,
| ^^^^^^^^^^^ `JSClassDefinition` does not have this field
|
= note: available fields are: `version`, `attributes`, `className`, `parentClass`, `__bindgen_anon_1`, `privateData`
error[E0560]: struct `JSClassDefinition` has no field named `getProperty`
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/helpers.rs:34:13
|
34 | getProperty: None,
| ^^^^^^^^^^^ `JSClassDefinition` does not have this field
|
= note: available fields are: `version`, `attributes`, `className`, `parentClass`, `__bindgen_anon_1`, `privateData`
error[E0560]: struct `JSClassDefinition` has no field named `setProperty`
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/helpers.rs:35:13
|
35 | setProperty: None,
| ^^^^^^^^^^^ `JSClassDefinition` does not have this field
|
= note: available fields are: `version`, `attributes`, `className`, `parentClass`, `__bindgen_anon_1`, `privateData`
error[E0560]: struct `JSClassDefinition` has no field named `deleteProperty`
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/helpers.rs:36:13
|
36 | deleteProperty: None,
| ^^^^^^^^^^^^^^ `JSClassDefinition` does not have this field
|
= note: available fields are: `version`, `attributes`, `className`, `parentClass`, `__bindgen_anon_1`, `privateData`
error[E0560]: struct `JSClassDefinition` has no field named `getPropertyNames`
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/helpers.rs:37:13
|
37 | getPropertyNames: None,
| ^^^^^^^^^^^^^^^^ `JSClassDefinition` does not have this field
|
= note: available fields are: `version`, `attributes`, `className`, `parentClass`, `__bindgen_anon_1`, `privateData`
error[E0560]: struct `JSClassDefinition` has no field named `callAsConstructor`
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/helpers.rs:38:13
|
38 | callAsConstructor: None,
| ^^^^^^^^^^^^^^^^^ `JSClassDefinition` does not have this field
|
= note: available fields are: `version`, `attributes`, `className`, `parentClass`, `__bindgen_anon_1`, `privateData`
error[E0560]: struct `JSClassDefinition` has no field named `hasInstance`
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/helpers.rs:39:13
|
39 | hasInstance: None,
| ^^^^^^^^^^^ `JSClassDefinition` does not have this field
|
= note: available fields are: `version`, `attributes`, `className`, `parentClass`, `__bindgen_anon_1`, `privateData`
error[E0560]: struct `JSClassDefinition` has no field named `convertToType`
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/helpers.rs:40:13
|
40 | convertToType: None,
| ^^^^^^^^^^^^^ `JSClassDefinition` does not have this field
|
= note: available fields are: `version`, `attributes`, `className`, `parentClass`, `__bindgen_anon_1`, `privateData`
error[E0560]: struct `JSClassDefinition` has no field named `finalize`
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/helpers.rs:41:13
|
41 | finalize: None,
| ^^^^^^^^ `JSClassDefinition` does not have this field
|
= note: available fields are: `version`, `attributes`, `className`, `parentClass`, `__bindgen_anon_1`, `privateData`
error[E0560]: struct `JSClassDefinition` has no field named `callAsFunction`
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/helpers.rs:42:13
|
42 | callAsFunction: Some(hook_function),
| ^^^^^^^^^^^^^^ `JSClassDefinition` does not have this field
|
= note: available fields are: `version`, `attributes`, `className`, `parentClass`, `__bindgen_anon_1`, `privateData`
error[E0308]: mismatched types
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/helpers_internal.rs:158:9
|
158 | ul_sys::ulStringGetLength(message),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found `u64`
|
help: you can convert a `u64` to a `usize` and panic if the converted value doesn't fit
|
158 | ul_sys::ulStringGetLength(message).try_into().unwrap(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/helpers_internal.rs:166:9
|
166 | ul_sys::ulStringGetLength(source_id),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found `u64`
|
help: you can convert a `u64` to a `usize` and panic if the converted value doesn't fit
|
166 | ul_sys::ulStringGetLength(source_id).try_into().unwrap(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/jsc/object.rs:162:32
|
162 | if self.idx < unsafe { ul_sys::JSPropertyNameArrayGetCount(self.raw) } {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found `u64`
|
help: you can convert a `u64` to a `usize` and panic if the converted value doesn't fit
|
162 | if self.idx < unsafe { ul_sys::JSPropertyNameArrayGetCount(self.raw).try_into().unwrap() } {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/jsc/object.rs:163:85
|
163 | let name = unsafe { ul_sys::JSPropertyNameArrayGetNameAtIndex(self.raw, self.idx) };
| ^^^^^^^^ expected `u64`, found `usize`
|
help: you can convert a `usize` to a `u64` and panic if the converted value doesn't fit
|
163 | let name = unsafe { ul_sys::JSPropertyNameArrayGetNameAtIndex(self.raw, self.idx.try_into().unwrap()) };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/jsc/object.rs:173:15
|
173 | (sz - self.idx, Some(sz))
| ^^^^^^^^ expected `u64`, found `usize`
error[E0308]: mismatched types
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/jsc/object.rs:173:10
|
173 | (sz - self.idx, Some(sz))
| ^^^^^^^^^^^^^ expected `usize`, found `u64`
|
help: you can convert a `u64` to a `usize` and panic if the converted value doesn't fit
|
173 | ((sz - self.idx).try_into().unwrap(), Some(sz))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: cannot subtract `usize` from `u64`
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/jsc/object.rs:173:13
|
173 | (sz - self.idx, Some(sz))
| ^ no implementation for `u64 - usize`
|
= help: the trait `Sub<usize>` is not implemented for `u64`
error[E0308]: mismatched types
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/jsc/object.rs:173:30
|
173 | (sz - self.idx, Some(sz))
| ^^ expected `usize`, found `u64`
|
help: you can convert a `u64` to a `usize` and panic if the converted value doesn't fit
|
173 | (sz - self.idx, Some(sz.try_into().unwrap()))
| ^^^^^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/jsc/string.rs:16:58
|
16 | let mut buffer: Vec<u8> = Vec::with_capacity(max_size);
| ^^^^^^^^ expected `usize`, found `u64`
|
help: you can convert a `u64` to a `usize` and panic if the converted value doesn't fit
|
16 | let mut buffer: Vec<u8> = Vec::with_capacity(max_size.try_into().unwrap());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> /home/nesanya/.cargo/registry/src/github.com-1ecc6299db9ec823/ul-1.1.4/src/jsc/string.rs:22:28
|
22 | buffer.set_len(actual_size - 1);
| ^^^^^^^^^^^^^^^ expected `usize`, found `u64`
|
help: you can convert a `u64` to a `usize` and panic if the converted value doesn't fit
|
22 | buffer.set_len((actual_size - 1).try_into().unwrap());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
You're all free to contribute to this library. There are breaking changes to the API exposed by ultralight, most importantly the ULApp API. All other issues have been fixed a while ago. |
Why have this attitude towards a bug report? I don't see anything particularly demanding, just an issue being reported. |
@LoganDark you're interpreting projecting antagonism into my statement, it wasn't meant to be antagonistic at all. I just don't have any time whatsoever to look into this. The project that I used this library for still works with the old version of Ultralight and I'm unhappy that there were breaking changes at all.
This literally means most of the issues listed in that comment have been fixed already. There's a handful of issues left, primarily related to changes in the configuration and setup of ULApp (since there's now support for multiple windows). |
The text was updated successfully, but these errors were encountered: