alchemy
alchemy copied to clipboard
Example at https://alchemy.rs/ does not compile
I tried to copy the example provided at https://alchemy.rs/ at it is without any modification and got this error message:
error[E0433]: failed to resolve: use of undeclared type or module `PlatformAppBridge`
--> /home/tembo/.cargo/registry/src/github.com-1ecc6299db9ec823/alchemy-0.2.0/src/app.rs:54:24
|
54 | *bridge = Some(PlatformAppBridge::new(ptr));
| ^^^^^^^^^^^^^^^^^ use of undeclared type or module `PlatformAppBridge`
error[E0433]: failed to resolve: use of undeclared type or module `PlatformViewBridge`
--> /home/tembo/.cargo/registry/src/github.com-1ecc6299db9ec823/alchemy-0.2.0/src/components/view.rs:37:32
|
37 | bridge: Mutex::new(PlatformViewBridge::new())
| ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `PlatformViewBridge`
error[E0433]: failed to resolve: use of undeclared type or module `PlatformTextBridge`
--> /home/tembo/.cargo/registry/src/github.com-1ecc6299db9ec823/alchemy-0.2.0/src/components/text.rs:46:25
|
46 | Text(Mutex::new(PlatformTextBridge::new()))
| ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `PlatformTextBridge`
error[E0433]: failed to resolve: use of undeclared type or module `PlatformWindowBridge`
--> /home/tembo/.cargo/registry/src/github.com-1ecc6299db9ec823/alchemy-0.2.0/src/window/window.rs:98:22
|
98 | let bridge = PlatformWindowBridge::new(window_id, backing_node, shared_app_ptr);
| ^^^^^^^^^^^^^^^^^^^^ use of undeclared type or module `PlatformWindowBridge`
error[E0412]: cannot find type `PlatformAppBridge` in this scope
--> /home/tembo/.cargo/registry/src/github.com-1ecc6299db9ec823/alchemy-0.2.0/src/app.rs:30:37
|
30 | pub(crate) bridge: Mutex<Option<PlatformAppBridge>>,
| ^^^^^^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `PlatformViewBridge` in this scope
--> /home/tembo/.cargo/registry/src/github.com-1ecc6299db9ec823/alchemy-0.2.0/src/components/view.rs:31:19
|
31 | bridge: Mutex<PlatformViewBridge>
| ^^^^^^^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `PlatformTextBridge` in this scope
--> /home/tembo/.cargo/registry/src/github.com-1ecc6299db9ec823/alchemy-0.2.0/src/components/text.rs:28:23
|
28 | pub struct Text(Mutex<PlatformTextBridge>);
| ^^^^^^^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `PlatformWindowBridge` in this scope
--> /home/tembo/.cargo/registry/src/github.com-1ecc6299db9ec823/alchemy-0.2.0/src/window/window.rs:26:17
|
26 | pub bridge: PlatformWindowBridge,
| ^^^^^^^^^^^^^^^^^^^^ not found in this scope
error: aborting due to 8 previous errors
Some errors occurred: E0412, E0433.
For more information about an error, try `rustc --explain E0412`.
error: Could not compile `alchemy`.
To learn more, run the command again with --verbose.
From the error message looks to be something to do with Alchemy. I'm on Ubuntu 19.04 x64 using Rust 1.34.
Yup! Right now the example will only run on cocoa
- I have the basics of the gtk
backend in a local branch but haven't had time to really finish it yet.
I wanted to push the repo out to get feedback on API and so on, but this is still very much a silent launch. GUI frameworks are a huge project, so... lol
I'll leave this open as both a disclaimer to anyone coming by, as well as a push to get it running on Ubuntu. I'll drop a note here when it's runnable too. :)
@ryanmcgrath thank you so much a quick response.