Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 126210

Rust is a language designed for writing highly reliable and fast software in a simple way. It can be used from high-level code down to hardware-specific code, and from big irons to tiny devices.

1 vote
Accepted

Where is the constructor of a stylus contract defined?

UPDATE: There is now a tool that lets you write the constructors in Solidity and use them for your Rust contracts. https://github.com/OpenZeppelin/koba There is currently no support for constructors in …
alexfertel's user avatar
0 votes

Converting between Alloy Primitive and Storage Types

You would use from() or into(). The SDK uses Alloy's primitives behind the scenes. That being said, it's rare that you have to do this conversion yourself, because the Stylus team has made sure that A …
alexfertel's user avatar
1 vote
Accepted

Why do I use extern crate for alloc instead of `use std::alloc`?

In Edition 2015 of Rust, extern crate was used to import crates. However, that is no longer necessary. The "sysroot" crates are an exception though, and alloc is one of them. …
alexfertel's user avatar