Is there a way to create an actor class from rust?
Is it possible to take some rust source code and generate wasm with a candid file simialr to that of an actor class in motoko:, i.e.
Thanks Eric, I had seen these but they all seem to initialise an actor rather than an actor class (unless I am mistaken). I’m looking for a factory method that can be used to create more instances, something like this in the service definition:
I haven’t tested this out myself yet but I think in the rust you can compile the canister(actor-class) in a separate-folder to wasm, then take those wasm-bytes and hardcode them into the rust canister that is creating the new actors and have it call the create_canister method on the management-canister with the wasm-bytes as the parameter for the wasm-module.
Thanks, unfortunately the main reason I am wanting to do this is to create actors through a factory method locally on dfx, bypassing the lack of management canister.