Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
ink
Commits
2b67b66b
Commit
2b67b66b
authored
Jan 09, 2019
by
Hero Bird
Browse files
[examples/Subpeep] Use pdsl_core::memory utilities instead of alloc
parent
f548ea51
Changes
2
Hide whitespace changes
Inline
Side-by-side
examples/subpeep/src/lib.rs
View file @
2b67b66b
#![feature(alloc_error_handler)]
#![feature(core_intrinsics)]
#![feature(alloc)]
#![no_std]
#[cfg(all(test,
feature
=
"test-env"
))]
mod
tests
;
mod
utils
;
#[cfg_attr(test,
macro_use)]
extern
crate
alloc
;
use
alloc
::
string
::
String
;
use
alloc
::
vec
::
Vec
;
use
pdsl_core
::
storage
;
use
parity_codec_derive
::{
Encode
,
Decode
};
use
pdsl_core
::{
memory
::{
string
::
String
,
},
storage
,
};
use
parity_codec
::{
Encode
,
Decode
};
/// A peep done by a registered user.
...
...
examples/subpeep/src/utils.rs
View file @
2b67b66b
...
...
@@ -5,17 +5,13 @@ use pdsl_core::{
ForwardAlloc
,
},
},
env
::{
Env
,
ContractEnv
,
},
memory
::
string
::
String
,
};
use
parity_codec
::{
Encode
,
Decode
};
use
lazy_static
::
lazy_static
;
use
spin
::
Mutex
;
use
alloc
::
string
::
String
;
pub
type
Address
=
[
u8
;
32
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment