Skip to content

Commit

Permalink
Update code to use Stylus SDK v0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TucksonDev committed Aug 28, 2024
1 parent 8d9027a commit 1801a8f
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 87 deletions.
16 changes: 0 additions & 16 deletions .cargo/config

This file was deleted.

76 changes: 13 additions & 63 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
[package]
name = "stylus-hello-world-minimal"
version = "0.1.1"
version = "0.1.2"
edition = "2021"

[dependencies]
stylus-sdk = "0.5.1"
mini-alloc = "0.4.2"
stylus-sdk = { git = "https://github.com/OffchainLabs/stylus-sdk-rs.git", rev = "refs/pull/145/head" }

[features]
export-abi = ["stylus-sdk/export-abi"]
Expand Down
2 changes: 2 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[toolchain]
channel = "1.80.0"
5 changes: 0 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
#![no_main]
#![no_std]
extern crate alloc;

#[global_allocator]
static ALLOC: mini_alloc::MiniAlloc = mini_alloc::MiniAlloc::INIT;

use alloc::vec::Vec;

use stylus_sdk::stylus_proc::entrypoint;

#[entrypoint]
Expand Down

0 comments on commit 1801a8f

Please sign in to comment.