Skip to content

Instantly share code, notes, and snippets.

@ctaggart
ctaggart / ClickOnceProfile.pubxml.user.template.xml
Last active December 25, 2020 00:08
ClickOnce for Rust Apps
<Project>
<PropertyGroup>
<InstallUrl>https://ctaggart.github.io/minesweeper-rs/</InstallUrl>
<ManifestCertificateThumbprint>1A92BF20220B301077205787F406B1BCEE6DA97E</ManifestCertificateThumbprint>
</PropertyGroup>
</Project>
@ctaggart
ctaggart / Cargo.toml
Created August 22, 2020 02:13
cmdproxy
[package]
name = "cmdproxy"
version = "0.1.0"
authors = ["Cameron Taggart <cameron.taggart@gmail.com>"]
edition = "2018"
[dependencies]
# tokio = { version = "0.2", features = ["macros", "io-std", "io-util", "fs", "process"] }
tokio = { version = "0.2", features = ["full"] }
bytes = "*"
impl AsRef<OutgoingMessage> for ServerResponse {
fn as_ref(&self) -> &OutgoingMessage {
self.unchecked_ref()
}
}
impl From<ServerResponse> for OutgoingMessage {
fn from(child: ServerResponse) -> Self {
child.unchecked_into()
}
}
mod logging;
use node::http::{create_server, IncomingMessage, RequestListener, ServerResponse};
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
pub fn run() {
// based on https://nodejs.org/en/docs/guides/getting-started-guide/
let default_port = 3000.;
let port = match node::PROCESS.env().get("PORT") {
const { run } = require('./pkg/node_console_hello_world.js');
run(process.argv);
mod logging;
use js_sys::Array;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
pub fn run(argv: &Array) {
node::CONSOLE.log_va0(argv);
let args: Vec<String> = argv.iter().flat_map(|v| v.as_string()).collect();
log!("args: {:?}", args);
namespace std { inline namespace __1 { } }
typedef __signed char int8_t;
typedef short int16_t;
typedef int int32_t;
typedef long long int64_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
typedef unsigned long long uint64_t;
typedef int8_t int_least8_t;
configure.ac:121: installing './compile'
configure.ac:8: installing './missing'
Makefile.am: installing './depcomp'
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking build system type... x86_64-apple-darwin19.0.0
checking host system type... x86_64-apple-darwin19.0.0
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
use azure_sdk_storage_core::client::Client;
use azure_sdk_storage_table::table::TableService;
use std::error::Error;
use tokio_core::reactor::Core;
use futures::stream::Stream;
fn main() {
code().unwrap();
}
@ctaggart
ctaggart / create_blobs.rs
Created September 25, 2019 10:52
create_blobs.rs
use azure_sdk_core::prelude::*;
use azure_sdk_storage_blob::prelude::*;
use azure_sdk_storage_core::prelude::*;
use futures::future::*;
use std::error::Error;
use tokio_core::reactor::Core;
fn main() {
code().unwrap();
}