From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 3FD3A797E0 for ; Wed, 5 May 2021 08:37:08 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 2C5CF10A83 for ; Wed, 5 May 2021 08:36:38 +0200 (CEST) Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 7DE2510A78 for ; Wed, 5 May 2021 08:36:34 +0200 (CEST) Received: by mail-wr1-x429.google.com with SMTP id l13so486267wru.11 for ; Tue, 04 May 2021 23:36:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=odiso-com.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:user-agent:mime-version :content-transfer-encoding; bh=TyO8WmVIsEGua/cWIzIoehKmk+2yfVG0fo74hDU8wY4=; b=k3WeA1O3xIGpm1sFwx8Wm+dcLF8cCSjvhf/s0ORXFkq9xklh9FtWEzNVfgDd6af6AM cFhuo5H7bmYrEVz8zu48ejZzPCfOrZjyqdQkf9gGTEOTtUb+mY/uwl62rLdtbcjXozyG CZfUY3aZB5eivU/sgYPP3PvzqsiWExAbtbGiL9p4sJoShTvcXRYIEAY+DYmVXqdr5Y8Q yjmIk5lzD+o76uV05YkCin/GBtWpQQjSFJwGjPSS7WMr+3cmvBXakCIRzXQXN8A8108/ pxysD+P+MPY9+C9bHK/KjkHc/g23JxoBB9Q6mokWmqcy0AGIKzU/N9IWP5CajeKmtZSY sQpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:user-agent :mime-version:content-transfer-encoding; bh=TyO8WmVIsEGua/cWIzIoehKmk+2yfVG0fo74hDU8wY4=; b=CVC8mNOFO2q+XzyTBHzPKSW9Tpt4YKEGGQTjflTbbPqifavb6d+H4DahX07+kTvNPI /Msul6Wrx5Br5Z5O0utGODSv9moFLeEAda5dB0jATesQoo18WpQK05ROiNLXKIRpr/IS 7wO0OwcTF11BahhnY6rU4oZGQtnm/ZLzPzG/LVaXLUdoTnYYEdoGgkiW4s/0A/xU0vKe 8zYzbYpSlvYUOoAW/gwHKXvcsCj++HjIz+9CY6owwdlSxrO49t4lyMng9cMCTr8dpjVd uj4AazQFtEzQ0msJD/UQC9bcaEFHQ85ocAjXdOA7hOBAUK6s0A+Kjz0IeDZzKPoGa3qm yQuw== X-Gm-Message-State: AOAM531tmIY5sc44gpn4hyq3m3QjSnyfSXt9YQ0eVVVAaAEzTABKBeTh 9/RhJU9+fE4tnn8YEdCkceSEhRtlD0RKptKJ X-Google-Smtp-Source: ABdhPJyZfm1K3nOgxk0mysQM+hRBNgOM6uVAab6cg30WXgCMQnGODjFlMA+VKuC+3TVIiiGH+IaPqg== X-Received: by 2002:adf:cd01:: with SMTP id w1mr36334804wrm.425.1620196587758; Tue, 04 May 2021 23:36:27 -0700 (PDT) Received: from ?IPv6:2a0a:1580:0:1::100c? (ovpn1.odiso.net. [2a0a:1580:2000::3f]) by smtp.gmail.com with ESMTPSA id z14sm21523110wrt.54.2021.05.04.23.36.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 May 2021 23:36:27 -0700 (PDT) Message-ID: From: aderumier@odiso.com To: pve-devel Date: Wed, 05 May 2021 08:36:25 +0200 Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.080 Adjusted score from AWL reputation of From: address DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature RCVD_IN_DNSWL_NONE -0.0001 Sender listed at https://www.dnswl.org/, no trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [websocket.rs, proxmox.com] Subject: [pve-devel] rust build questions X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 May 2021 06:37:08 -0000 Hi, I try to build proxmox rust package to test the remote migration, I'm a noob with rust, so I have begin too look at proxmox-backup doc https://git.proxmox.com/?p=proxmox-backup.git;a=blob_plain;f=README.rst;hb=HEAD ``rustup`` Toolchain ==================== We normally want to build with the ``rustc`` Debian package. To do that you can set the following ``rustup`` configuration: # rustup toolchain link system /usr # rustup default system I don't see any rustup binary in the rustc package ii rustc 1.51.0+dfsg1- 1~bpo10+pve1 amd64 Rust systems programming language ii cargo 0.46.0- 1~bpo10+pve1 amd64 Rust package manager any idea ? does it come from another package ? currently, I have tried to build "proxmox" rust https://git.proxmox.com/?p=proxmox.git;a=shortlog with a simple "make deb" + installed needed build depend. but I have this error " test src/tools/websocket.rs - tools::websocket::create_frame (line 161) ... ok test src/tools/websocket.rs - tools::websocket::create_frame (line 148) ... ok failures: ---- src/api/api_type_macros.rs - api_string_type (line 5) stdout ---- error[E0432]: unresolved import `proxmox::api::api` --> src/api/api_type_macros.rs:6:5 | 4 | use proxmox::api::api; | ^^^^^^^^^^^^^^^^^ no `api` in `api` error: cannot determine resolution for the attribute macro `api` --> src/api/api_type_macros.rs:13:7 | 11 | #[api(format: &PROXMOX_SAFE_ID_FORMAT)] | ^^^ | = note: import resolution is stuck, try simplifying macro imports error[E0599]: no associated item named `API_SCHEMA` found for struct `AccountName` in the current scope --> src/api/api_type_macros.rs:12:1 | 10 | / api_string_type! { 11 | | #[api(format: &PROXMOX_SAFE_ID_FORMAT)] 12 | | /// ACME account name. 13 | | #[derive(Debug, Clone, Eq, PartialEq, Hash, Deserialize, Serialize)] 14 | | #[serde(transparent)] 15 | | pub struct AccountName(String); 16 | | } | | ^ | | | | |_associated item `API_SCHEMA` not found for this | associated item not found in `AccountName` | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: aborting due to 3 previous errors Some errors have detailed explanations: E0432, E0599. For more information about an error, try `rustc --explain E0432`. Couldn't compile the test. failures: src/api/api_type_macros.rs - api_string_type (line 5) test result: FAILED. 60 passed; 1 failed; 7 ignored; 0 measured; 0 filtered out; finished in 23.78s error: test failed, to rerun pass '--doc' " Seem to be a missing package ?