Run with cargo run --example <example-name>.
In Cargo.toml, configure it with the following if each example needs special crate's features.
[[example]]
name = "json"
required-features = ["json", "serde/derive"]
| ; ---------- | |
| ; Move window up (Windows + Shift + UP) | |
| +#Up:: | |
| target_monitor := 2 | |
| SysGet, MonitorCount, MonitorCount | |
| ; get current active window | |
| WinGetPos, curr_win_x, curr_win_y, curr_win_width, curr_win_height, A |
| macro_rules! serial_test { | |
| (fn $name: ident() $body: block) => { | |
| #[test] | |
| fn $name() { | |
| let guard = LOCK.try_lock(); | |
| if let Ok(mutex) = guard { | |
| $body | |
| } | |
| else { | |
| let err = guard.unwrap_err(); |
| #!/bin/bash | |
| ### BEGIN INIT INFO | |
| # Provides: <your service name> | |
| # Required-Start: $network $syslog | |
| # Required-Stop: $network $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 6 | |
| # Short-Description: execute commands when system is up or down | |
| # Description: execute commands when system is up or down |
| [Unit] | |
| Description=My systemd service | |
| After=network.target | |
| # allow cap of 4 attempts to start the process | |
| # within 1 second, if not success, then give up | |
| StartLimitIntervalSec=1 | |
| StartLimitBurst=4 | |
| [Service] |
| use hex_literal::hex; | |
| use web3::{ | |
| contract::{Contract, Options}, | |
| futures::{future, StreamExt}, | |
| types::{FilterBuilder, Address}, | |
| }; | |
| use std::str::FromStr; | |
| #[tokio::main] | |
| async fn main() -> web3::contract::Result<()> { |
Run with cargo run --example <example-name>.
In Cargo.toml, configure it with the following if each example needs special crate's features.
[[example]]
name = "json"
required-features = ["json", "serde/derive"]
| { | |
| "topic": "liquidation.BTCUSD", | |
| "data": { | |
| "symbol": "BTCUSD", | |
| "side": "Buy", | |
| "price": "38931.50", | |
| "qty": "50000", | |
| "time": 1646584807379 | |
| } | |
| } |
| #[derive(Debug)] | |
| struct Token(usize, usize); | |
| fn main() { | |
| let token = Token(1, 2); | |
| println!("{} {}", token.0, token.1); | |
| } |
| $ make clean | |
| rm -f test/tests | |
| test -z "libhashmap_c.la" || rm -f libhashmap_c.la | |
| rm -f ./so_locations | |
| rm -rf .libs _libs | |
| rm -rf externals/MurmurHash3/src/.libs externals/MurmurHash3/src/_libs | |
| rm -rf src/.libs src/_libs | |
| rm -rf test/.libs test/_libs | |
| rm -f *.o | |
| rm -f externals/MurmurHash3/src/*.o |
| Source: curl | |
| Section: web | |
| Priority: optional | |
| Maintainer: Ubuntu Developers <[email protected]> | |
| XSBC-Original-Maintainer: Alessandro Ghedini <[email protected]> | |
| Build-Depends: debhelper (>= 12), | |
| autoconf, | |
| automake, | |
| ca-certificates, | |
| dh-exec, |