#rusty_v8 on android

1 messages · Page 1 of 1 (latest)

boreal crypt
#

@earnest saddle hello, sorry for the ping, but do you have a solution to building rusty_v8 on android?

#

I tried both on windows and on linux, both fail with the same error

earnest saddle
#

what do you want to do tho?

#

run deno on android?

#

or embed?

boreal crypt
#

run deno core to use js as a scripting language for modding for a game

earnest saddle
boreal crypt
#

F to me then

#

will explore alternative options then

#

not Boa tho, that thing is super slow

earnest saddle
#

best bet is to use the mid ass js api from androidx

#

which is garbage

boreal crypt
#

Problem is: I alo want to ship desktop version

earnest saddle
#

or if you can compile the game to wasm and then use an android webview

earnest saddle
boreal crypt
#

Bevy for everything

#

as engine

earnest saddle
#

well

#

JNI hell time then

#

or just WASM

boreal crypt
#

If worst come to worst I will just use Rhai/Rune

#

or port Miniscript to Rust

earnest saddle
#

wait actually

earnest saddle
#

android already ships v8

boreal crypt
#

JS is more of a "luxury pick" whenever possible

earnest saddle
#

to some extent

#

is size an issue?

#

you can embed spidermonkey instead of v8

boreal crypt
#

Interracting with platform native API is more effort than it's worth for my use case

#

but I will check spidermonkey too

#

I want to ideally keep my scripting engine under 30 MB

earnest saddle
earnest saddle
#

its not that bad

#

wait how does bevy package for android?

#

does it give you a staticlib?

#

with native activity?

boreal crypt
#

No idea

earnest saddle
#

last i checked

#

it used cargo-apk under hood

#

so hnmmm

boreal crypt
#

they still do

earnest saddle
#

does it give you an apk?

#

or just a .so ?

boreal crypt
#

Ugh, I don't have ready project for that

#

give me 15 mins

earnest saddle
#

give me like 5 min need to go do dishes

#

kk

boreal crypt
#

UGh

#

I don't think I can build it any time soon

#

weird linking errors

earnest saddle
silent quest
#

hey folks, did you have any success compiling to Android? I'm also trying to embed the v8 using deno_core, in my desktop app it's already working my v8 integration, I saw rusty_v8 v0.42.1 was the last version with android support

#

It seems it compiles fine in my local env (V8_FROM_SOURCE=1 cargo build in v8 ), but I'm getting stuck running cargo build for deno

silent quest
#

The V8 compiles fine, but when I try to build the deno crate, it throws the same error as juh9870 posted (the second message)