rust-crowbar:包装程序,以简化在Rust中使用AWS Lambda函数编写(使用Python执行环境)-源码

上传者: 42168341 | 上传时间: 2021-02-02 03:34:47 | 文件大小: 46KB | 文件类型: ZIP
锈撬棍 使用撬杠可以轻松地在Rust中编写AWS Lambda函数。 它将原生Rust函数包装到CPython模块中,该模块处理将Python对象转换为Rust对象并再次转换的过程。 用法 将撬杠和cpython都添加到您的Cargo.toml : [ dependencies ] crowbar = " 0.3 " cpython = " 0.2 " 使用两个包装箱中的宏: #[macro_use(lambda)] extern crate crowbar; #[macro_use] extern crate cpython; 并使用lambda!编写函数lambda! 巨集: lambda! ( | event, context | { println! ( "hi cloudwatch logs, this is {}" , context. function_name ()); // return the event without doing anything with it Ok (event) }); 构建Lambda函数 为了使代码可

文件下载

资源详情

[{"title":"( 45 个子文件 46KB ) rust-crowbar:包装程序,以简化在Rust中使用AWS Lambda函数编写(使用Python执行环境)-源码","children":[{"title":"rust-crowbar-master","children":[{"title":"LICENSE-MIT <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"crowbar-attr","children":[{"title":"Cargo.toml <span style='color:#111;'> 486B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"lib.rs <span style='color:#111;'> 2.34KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Vagrantfile <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"Cargo.toml <span style='color:#111;'> 787B </span>","children":null,"spread":false},{"title":"vagrant.yml <span style='color:#111;'> 111B </span>","children":null,"spread":false},{"title":"requirements.yml <span style='color:#111;'> 121B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"lib.rs <span style='color:#111;'> 18.49KB </span>","children":null,"spread":false}],"spread":true},{"title":"LICENSE-APACHE <span style='color:#111;'> 10.59KB </span>","children":null,"spread":false},{"title":"ansible.cfg <span style='color:#111;'> 169B </span>","children":null,"spread":false},{"title":"examples","children":[{"title":"ci","children":[{"title":"circle","children":[{"title":"Cargo.toml <span style='color:#111;'> 379B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"lib.rs <span style='color:#111;'> 343B </span>","children":null,"spread":false}],"spread":false},{"title":".circleci","children":[{"title":"config.yml <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false}],"spread":false},{"title":"README.md <span style='color:#111;'> 99B </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 19B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"clean <span style='color:#111;'> 331B </span>","children":null,"spread":false},{"title":"build <span style='color:#111;'> 554B </span>","children":null,"spread":false},{"title":"test <span style='color:#111;'> 343B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"travis","children":[{"title":"Cargo.toml <span style='color:#111;'> 379B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"lib.rs <span style='color:#111;'> 343B </span>","children":null,"spread":false}],"spread":false},{"title":".travis.yml <span style='color:#111;'> 230B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 101B </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 19B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"clean <span style='color:#111;'> 331B </span>","children":null,"spread":false},{"title":"build <span style='color:#111;'> 554B </span>","children":null,"spread":false},{"title":"test <span style='color:#111;'> 343B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"echo","children":[{"title":"Cargo.toml <span style='color:#111;'> 799B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"lib.rs <span style='color:#111;'> 343B </span>","children":null,"spread":false}],"spread":false},{"title":".gitignore <span style='color:#111;'> 18B </span>","children":null,"spread":false}],"spread":true},{"title":"ec2-regions","children":[{"title":"Cargo.toml <span style='color:#111;'> 847B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"lib.rs <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false}],"spread":false},{"title":".gitignore <span style='color:#111;'> 18B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".travis.yml <span style='color:#111;'> 293B </span>","children":null,"spread":false},{"title":"assets","children":[{"title":"logo.svg <span style='color:#111;'> 11.64KB </span>","children":null,"spread":false},{"title":"logo.png <span style='color:#111;'> 5.37KB </span>","children":null,"spread":false}],"spread":true},{"title":"test","children":[{"title":"README.md <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 196B </span>","children":null,"spread":false},{"title":"Makefile.docker <span style='color:#111;'> 900B </span>","children":null,"spread":false},{"title":"Makefile.local <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"test_liblambda.py <span style='color:#111;'> 7.47KB </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 6.00KB </span>","children":null,"spread":false},{"title":"CODE_OF_CONDUCT.md <span style='color:#111;'> 3.09KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 79B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明